feature #556, adapt checks to new design

This commit is contained in:
plegall
2016-11-29 11:26:04 +01:00
parent 6d2812cf24
commit 7dcbe20a8e

View File

@@ -40,13 +40,6 @@ jQuery("#mergeTags label").click(function() {
displayDeletionWarnings();
});
jQuery("input[name=merge]").click(function() {
if (jQuery("ul.tagSelection input[type=checkbox]:checked").length < 2) {
alert("{'Select at least two tags for merging'|@translate}");
return false;
}
});
$("#searchInput").on("keydown", function(e) {
var $this = $(this),
timer = $this.data("timer");
@@ -133,6 +126,14 @@ jQuery("form").submit(function() {
return false;
}
}
if (jQuery("select[name=selectAction]").val() == "merge") {
if (jQuery("ul.tagSelection input[type=checkbox]:checked").length < 2) {
alert("{'Select at least two tags for merging'|@translate}");
return false;
}
}
/* return false; */
});