Skip to content

Commit 8a44e6f

Browse files
committed
v2.2
(2019-07-23) + option to focus on messages list
1 parent b5a68ff commit 8a44e6f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/bootstrap.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ function disableAll(obj, r)
9595
if (obj.tagName == "button" || obj.id.match(/^autoSLM/))
9696
return;
9797

98-
if (!r && !obj.hasAttribute("backupDisabled"))
99-
obj.setAttribute("backupDisabled", obj.disabled);
98+
if (!r && !("___autoSLM_disabled" in obj))
99+
obj.___autoSLM_disabled = obj.disabled;
100100

101-
if (r && obj.hasAttribute("backupDisabled"))
102-
obj.disabled = obj.getAttribute("backupDisabled") == "true";
101+
if (r && "___autoSLM_disabled" in obj)
102+
obj.disabled = obj.___autoSLM_disabled;
103103
else if (!r)
104104
obj.disabled = true;
105105

@@ -301,7 +301,6 @@ function fixpref(window, r, s)
301301
checkbox.id = "autoSLM_checkbox";
302302
checkbox.setAttribute("label", "Auto focus on messages list");
303303
checkbox.setAttribute("preference", PREF_BRANCH + "focus");
304-
checkbox.addEventListener("command", prefChange, true);
305304
addElement(checkbox, box);
306305

307306
p.id = PREF_BRANCH + "sel";

0 commit comments

Comments
 (0)