|
@@ -197,7 +197,7 @@ ${ layout.menubar(section='coordinators') }
|
|
|
|
|
|
|
|
function toggleActions() {
|
|
function toggleActions() {
|
|
|
$(".toolbarBtn").attr("disabled", "disabled");
|
|
$(".toolbarBtn").attr("disabled", "disabled");
|
|
|
- var selector = $(".hueCheckbox[checked='checked']");
|
|
|
|
|
|
|
+ var selector = $(".hueCheckbox[checked='checked']:not(.selectAll)");
|
|
|
if (selector.length == 1) {
|
|
if (selector.length == 1) {
|
|
|
var action_buttons = [
|
|
var action_buttons = [
|
|
|
['#submit-btn', 'data-submit-url'],
|
|
['#submit-btn', 'data-submit-url'],
|
|
@@ -213,8 +213,7 @@ ${ layout.menubar(section='coordinators') }
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
var can_delete = $(".hueCheckbox[checked='checked'][data-delete-id]");
|
|
var can_delete = $(".hueCheckbox[checked='checked'][data-delete-id]");
|
|
|
- var can_delete_box_count = $(".hueCheckbox[data-delete-id]").length;
|
|
|
|
|
- if (can_delete.length >= 1 || can_delete.length == can_delete_box_count) {
|
|
|
|
|
|
|
+ if (can_delete.length > 0 && can_delete.length == selector.length) {
|
|
|
$("#trash-btn").removeAttr("disabled");
|
|
$("#trash-btn").removeAttr("disabled");
|
|
|
$("#trash-btn-caret").removeAttr("disabled");
|
|
$("#trash-btn-caret").removeAttr("disabled");
|
|
|
}
|
|
}
|