mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-13 21:31:35 +02:00
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
This commit is contained in:
@@ -144,9 +144,16 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$("[id^=action_]").hide();
|
$("[id^=action_]").hide();
|
||||||
|
|
||||||
$("select[name=selectAction]").click(function () {
|
$("select[name=selectAction]").change(function () {
|
||||||
$("[id^=action_]").hide();
|
$("[id^=action_]").hide();
|
||||||
$("#action_"+$(this).attr("value")).show();
|
$("#action_"+$(this).attr("value")).show();
|
||||||
|
|
||||||
|
if ($(this).val() != -1) {
|
||||||
|
$("#applyActionBlock").show();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$("#applyActionBlock").hide();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".wrap1 label").click(function () {
|
$(".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 () {
|
$(".removeFilter").click(function () {
|
||||||
var filter = $(this).parent('li').attr("id");
|
var filter = $(this).parent('li').attr("id");
|
||||||
filter_disable(filter);
|
filter_disable(filter);
|
||||||
|
|||||||
Reference in New Issue
Block a user