aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-05-31 18:48:11 +0000
committerrvelices <rv-github@modusoptimus.com>2014-05-31 18:48:11 +0000
commitbd73ad9679430a1bc27beb78b24a1d64ab0509ec (patch)
treea1657cf8b5721ebc4d06d7038f4eb544fd8fbbd0
parent4a99fcdf894278d2853134c2a3c348144b9c8f52 (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/themes/default/js/datepicker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/themes/default/js/datepicker.js b/admin/themes/default/js/datepicker.js
index eb6f31a6f..2a421c967 100644
--- a/admin/themes/default/js/datepicker.js
+++ b/admin/themes/default/js/datepicker.js
@@ -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) {