Skip to content

Commit

Permalink
bug 2226 fixed: on a select, Chrome doesn't trigger anything on click…
Browse files Browse the repository at this point in the history
…(), use change() instead.

git-svn-id: http://piwigo.org/svn/trunk@9806 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Mar 21, 2011
1 parent 3f806a3 commit b6c8d06
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions admin/themes/default/template/batch_manager_global.tpl
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b6c8d06

Please sign in to comment.