[bug] fix new bookmark modal help text disable state not changing

This commit is contained in:
zombieFox 2020-04-05 11:21:27 +01:00
parent 90f103ca13
commit 0ea6147849
5 changed files with 16 additions and 20 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "nightTab",
"version": "5.5.2",
"version": "5.5.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "nightTab",
"version": "5.5.2",
"version": "5.5.3",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js",
"scripts": {

View File

@ -1194,9 +1194,21 @@ var link = (function() {
}, false);
displayLetterRadio.addEventListener("change", function(event) {
stagedLink.link.display = this.value;
displayLetterInput.removeAttribute("disabled");
displayIconInput.setAttribute("disabled", "");
helper.addClass(displayIconFormGroupText, "disabled");
helper.addClass(displayIconHelperItem, "disabled");
displayIconFormGroupClear.setAttribute("disabled", "");
displayIconFormGroupText.tabIndex = -1;
}, false);
displayIconRadio.addEventListener("change", function(event) {
stagedLink.link.display = this.value;
displayLetterInput.setAttribute("disabled", "");
displayIconInput.removeAttribute("disabled");
helper.removeClass(displayIconFormGroupText, "disabled");
helper.removeClass(displayIconHelperItem, "disabled");
displayIconFormGroupClear.removeAttribute("disabled");
displayIconFormGroupText.tabIndex = 1;
}, false);
displayLetterInput.addEventListener("input", function(event) {
stagedLink.link.letter = this.value;
@ -1242,22 +1254,6 @@ var link = (function() {
};
displayIconInput.value = "";
}, false);
displayLetterRadio.addEventListener("change", function(event) {
displayLetterInput.removeAttribute("disabled");
displayIconInput.setAttribute("disabled", "");
helper.addClass(displayIconFormGroupText, "disabled");
helper.addClass(displayIconHelper, "disabled");
displayIconFormGroupClear.setAttribute("disabled", "");
displayIconFormGroupText.tabIndex = -1;
}, false);
displayIconRadio.addEventListener("change", function(event) {
displayLetterInput.setAttribute("disabled", "");
displayIconInput.removeAttribute("disabled");
helper.removeClass(displayIconFormGroupText, "disabled");
helper.removeClass(displayIconHelper, "disabled");
displayIconFormGroupClear.removeAttribute("disabled");
displayIconFormGroupText.tabIndex = 1;
}, false);
autoSuggest.bind.input({
input: displayIconInput,
type: "fontawesomeIcon",

View File

@ -1,6 +1,6 @@
var version = (function() {
var current = "5.5.2";
var current = "5.5.3";
var name = "Zonked Tarsier";

View File

@ -2,7 +2,7 @@
"name": "nightTab",
"short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"version": "5.5.2",
"version": "5.5.3",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"