aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-10-26 14:58:35 +0000
committerpatdenice <patdenice@piwigo.org>2011-10-26 14:58:35 +0000
commit4e366549814f567ab07b292c54c8508ebe1f3ca8 (patch)
treea89bbb7669b87a05d1b696b60b114abadd680060 /themes/default
parentdc8633e4ce05443168e2d7e63e3c2385f2c33152 (diff)
merge r12519 from trunk to branch 2.3
bug:2480 datepicker need to use removeAttr jquery function to remove an attribute. git-svn-id: http://piwigo.org/svn/branches/2.3@12520 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/js/datepicker.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/default/js/datepicker.js b/themes/default/js/datepicker.js
index 743cf65cd..93e712e02 100644
--- a/themes/default/js/datepicker.js
+++ b/themes/default/js/datepicker.js
@@ -43,8 +43,8 @@ function pwg_common_initialization_datepicker(buttonImageName, day, month, year,
m = array_date[1];
// Init list
- $(day + " option").attr("disabled", "");
- $(month + " option").attr("disabled", "");
+ $(day + " option").removeAttr("disabled");
+ $(month + " option").removeAttr("disabled");
var daysInMonth = 32 - new Date(y, m - 1, 32).getDate();
$(day + " option:gt(" + (daysInMonth) +")").attr("disabled", "disabled");
@@ -77,7 +77,7 @@ function pwg_common_initialization_datepicker(buttonImageName, day, month, year,
$(month + " option:" + op_cmp + "(" + (m_cmp) +")").attr("disabled", "disabled");
if (op_cmp == "lt")
{
- $(month + " option:eq(" + (0) +")").attr("disabled", "");
+ $(month + " option:eq(" + (0) +")").removeAttr("disabled");
}
if (m == m_cmp)
@@ -85,7 +85,7 @@ function pwg_common_initialization_datepicker(buttonImageName, day, month, year,
$(day + " option:" + op_cmp + "(" + (d_cmp) +")").attr("disabled", "disabled");
if (op_cmp == "lt")
{
- $(day + " option:eq(" + (0) +")").attr("disabled", "");
+ $(day + " option:eq(" + (0) +")").removeAttr("disabled");
}
}
}