mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
time picker more forgiving with parsing errors (accept dates only without time)
git-svn-id: http://piwigo.org/svn/trunk@28578 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -77,7 +77,7 @@ jQuery.fn.pwgDatepicker = function(options) {
|
||||
|
||||
// set value from linked input
|
||||
if (linked) {
|
||||
if (value[0].length == 10 && !options.showTimepicker) {
|
||||
if (value[0].length == 10 && (!options.showTimepicker || value.length==1)) {
|
||||
set(jQuery.datepicker.parseDate('yy-mm-dd', value[0]), true);
|
||||
}
|
||||
else if (value.length == 2 && options.showTimepicker) {
|
||||
|
||||
Reference in New Issue
Block a user