aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-03-21 12:58:39 +0000
committerplegall <plg@piwigo.org>2011-03-21 12:58:39 +0000
commitb6c8d06acfb74c050ee907edb2e263ff0cd5b6c3 (patch)
tree5d1cd6bfeb96bc3ed02caac379a60877dee7b198 /admin/themes/default/template
parent3f806a31aa2f11c7ba34f2921606b88cae049f11 (diff)
bug 2226 fixed: on a select, Chrome doesn't trigger anything on click(), use change() instead.
git-svn-id: http://piwigo.org/svn/trunk@9806 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/themes/default/template/batch_manager_global.tpl18
1 files changed, 8 insertions, 10 deletions
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl
index 7d85e8bdd..8187b57ef 100644
--- a/admin/themes/default/template/batch_manager_global.tpl
+++ b/admin/themes/default/template/batch_manager_global.tpl
@@ -144,9 +144,16 @@ $(document).ready(function() {
$("[id^=action_]").hide();
- $("select[name=selectAction]").click(function () {
+ $("select[name=selectAction]").change(function () {
$("[id^=action_]").hide();
$("#action_"+$(this).attr("value")).show();
+
+ if ($(this).val() != -1) {
+ $("#applyActionBlock").show();
+ }
+ else {
+ $("#applyActionBlock").hide();
+ }
});
$(".wrap1 label").click(function () {
@@ -250,15 +257,6 @@ $(document).ready(function() {
}
});
- $("select[name=selectAction]").change(function() {
- if ($(this).val() != -1) {
- $("#applyActionBlock").show();
- }
- else {
- $("#applyActionBlock").hide();
- }
- });
-
$(".removeFilter").click(function () {
var filter = $(this).parent('li').attr("id");
filter_disable(filter);