Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
Use the new prefixed tag DOM node, don't select if tags disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Dec 9, 2018
1 parent 2234973 commit 0593f06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chrome/thunderlink/content/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var ThunderLinkPrefNS = {

menuItem.setAttribute("label", tagArray[j].tag);
menuItem.setAttribute("value", j + 1);
if (selectedIndex === (j + 1)) {
if (selectedIndex === (j + 1) && ThunderLinkPrefNS.GetPreferenceValue("custom-tl-string-" + cstrnum + "-tagcheckbox", "bool")) {
menuItem.setAttribute("selected", true);
}
menuPopup.appendChild(menuItem);
Expand Down Expand Up @@ -123,8 +123,8 @@ var ThunderLinkPrefNS = {

ToggleTlTagField: function ToggleTlTagField(cstrnum) {
function $(aID) { return document.getElementById(aID); }
var tlTagCheckbox = $("prefCustomTlString" + cstrnum + "-tagcheckbox");
var tlTagField = $("prefCustomTlString" + cstrnum + "-tag");
var tlTagCheckbox = $("thunderlink-prefCustomTlString" + cstrnum + "-tagcheckbox");
var tlTagField = $("thunderlink-prefCustomTlString" + cstrnum + "-tag");
if (tlTagCheckbox.checked) {
tlTagField.disabled = false;
} else {
Expand Down

0 comments on commit 0593f06

Please sign in to comment.