Skip to content

Commit 78a9a43

Browse files
committed
Merge pull request EFForg#2231 from EFForg/disable-disable-menuitem
Add disabled attribute to Enable/Disable rules.
2 parents a71e074 + 84bfdf7 commit 78a9a43

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/chrome/content/code/ApplicableList.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ ApplicableList.prototype = {
113113
// and disable rules.
114114
var label = document.createElement('menuitem');
115115
label.setAttribute('label', strings.getString('https-everywhere.menu.enableDisable'));
116+
label.setAttribute('disabled', 'true');
117+
label.setAttribute('class', 'menuitem-non-iconic');
118+
label.setAttribute('style', 'color:#000000;');
116119
var label2 = false;
117120
if (!any_rules) {
118121
label2 = document.createElement('menuitem');

src/chrome/content/toolbar_button.xul

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
<menuseparator />
5454
<menuitem label="&https-everywhere.menu.observatory;" command="https-everywhere-menuitem-observatory" />
5555
<menuitem label="&https-everywhere.menu.about;" command="https-everywhere-menuitem-about" />
56-
<menuitem type="checkbox" class="birthday menuitem-iconic" image="chrome://https-everywhere/skin/eff-16.png"
57-
label="Happy 25th birthday, EFF!" command="https-everywhere-menuitem-birthday" />
5856
</menupopup>
5957
</toolbarbutton>
6058
</toolbarpalette>

0 commit comments

Comments
 (0)