Skip to content

Commit

Permalink
Disable menu items.
Browse files Browse the repository at this point in the history
fix #74
  • Loading branch information
tonioo committed May 18, 2017
1 parent ab41760 commit 277a338
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modoboa_webmail/static/modoboa_webmail/js/webmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,13 @@ Webmail.prototype = {
state = true;
}
if (state) {
$("a[name=editmbox], a[name=removembox]").removeClass("disabled");
$('a[name=editmbox], a[name=removembox]').removeClass('disabled')
.css('pointer-events', 'auto')
.parent().removeClass('disabled');
} else {
$("a[name=editmbox], a[name=removembox]").addClass("disabled");
$('a[name=editmbox], a[name=removembox]').addClass('disabled')
.css('pointer-events', 'none')
.parent().addClass('disabled');
}
},

Expand All @@ -342,7 +346,7 @@ Webmail.prototype = {
}
this.enable_mb_actions();
for (var idx in this.options.ro_mboxes) {
if (curmb == this.options.ro_mboxes[idx]) {
if (curmb === this.options.ro_mboxes[idx]) {
this.enable_mb_actions(false);
break;
}
Expand Down

0 comments on commit 277a338

Please sign in to comment.