CC-4922
This commit is contained in:
parent
5fe70754bd
commit
c79e4fb9ea
|
@ -148,7 +148,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
mod.checkDeleteButton = function() {
|
||||
var selected = mod.getChosenItemsLength(),
|
||||
check = false;
|
||||
|
||||
|
||||
if (selected !== 0) {
|
||||
check = true;
|
||||
}
|
||||
|
|
|
@ -134,12 +134,15 @@ var AIRTIME = (function(AIRTIME){
|
|||
|
||||
mod.checkDeleteButton = function() {
|
||||
var $selected = $sbTable.find("tbody").find("input:checkbox").filter(":checked");
|
||||
|
||||
|
||||
var button = $("#show_builder").find(".icon-trash").parent(),
|
||||
DISABLED_CLASS = 'ui-state-disabled';
|
||||
if ($selected.length !== 0) {
|
||||
AIRTIME.button.enableButton("icon-trash", true);
|
||||
}
|
||||
else {
|
||||
AIRTIME.button.disableButton("icon-trash", true);
|
||||
button.removeClass(DISABLED_CLASS);
|
||||
button.removeAttr('disabled');
|
||||
} else {
|
||||
button.addClass(DISABLED_CLASS);
|
||||
button.attr('disabled', 'disabled');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue