Fix activation issue.

This commit is contained in:
Antoine Nguyen
2013-12-01 10:27:55 +01:00
parent 9b5985b630
commit 5d52b2ee60
2 changed files with 7 additions and 2 deletions
@@ -260,7 +260,7 @@ Quarantine.prototype = {
},
deactivate_buttons: function($tr) {
if (!this.htmltable.current_selection().length) {
if (!this.htmltable || !this.htmltable.current_selection().length) {
$("a[name=release-multi]").addClass('disabled');
$("a[name=delete-multi]").addClass('disabled');
$("#selectall").prop('checked', false);
+6 -1
View File
@@ -97,6 +97,9 @@
this.last_selection = null;
this.current_selection().removeClass(this.options.tr_selected_class);
$("tbody input[type=checkbox]").prop('checked', false);
if (this.options.tr_unselected_event != undefined) {
this.options.tr_unselected_event();
}
},
/*
@@ -104,7 +107,9 @@
*/
select_row: function($row) {
$row.addClass(this.options.tr_selected_class);
if (this.options.tr_selected_event != undefined) {
this.options.tr_selected_event($row);
}
},
keydown: function(e) {