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
0e5e1311
Commit
0e5e1311
authored
May 24, 2011
by
chris
Browse files
Fixing Bug #867: ajout de date antérieure impossible avec le calendrier javascript.
parent
c48ff107
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/sondage/choice_form.html
View file @
0e5e1311
...
...
@@ -41,19 +41,19 @@
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
()
/*
var data = $(this).val()
if (data) {
var mindate = data.convertToDate();
} else {
var mindate = '+1d'
}
}
*/
$
(
this
).
datepicker
({
dateFormat
:
'
dd-mm-yy
'
,
//showButtonPanel: true,
showOn
:
'
button
'
,
//both
buttonImage
:
'
/static/images/calendar.png
'
,
buttonImageOnly
:
true
,
minDate
:
mindate
,
minDate
:
'
+1d
'
,
});
// 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