Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
etch
nuages
Commits
40a9ab93
Commit
40a9ab93
authored
May 24, 2011
by
chris
Browse files
Cleaning obsolete javascript.
parent
0e5e1311
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/sondage/choice_form.html
View file @
40a9ab93
...
...
@@ -40,13 +40,6 @@
var
this_id
=
$
(
this
).
attr
(
"
id
"
);
// current inputs id
var
new_id
=
this_id
+
1
;
// a new id
$
(
this
).
attr
(
"
id
"
,
new_id
);
// change to new id
// The following if allows calendar to start at given date
/*var data = $(this).val()
if (data) {
var mindate = data.convertToDate();
} else {
var mindate = '+1d'
}*/
$
(
this
).
datepicker
({
dateFormat
:
'
dd-mm-yy
'
,
//showButtonPanel: true,
...
...
@@ -54,6 +47,7 @@
buttonImage
:
'
/static/images/calendar.png
'
,
buttonImageOnly
:
true
,
minDate
:
'
+1d
'
,
gotoCurrent
:
true
,
});
// Remove hasDatepicker class: not to be touched next time function is called
$
(
this
).
removeClass
(
'
hasdatepicker
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment