mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Fix activation issue.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user