Skip to content

Commit b4e0779

Browse files
committed
[bug] fix new link form help text not disabling
1 parent b9aee96 commit b4e0779

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nightTab",
3-
"version": "5.31.0",
3+
"version": "5.31.1",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
55
"main": "index.js",
66
"scripts":{

‎src/js/link.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ var link = (function(){
961961
varaccentColorPicker=helper.node("input|id:link-form-input-accent-picker,class:form-group-item-half link-form-input-accent-picker,type:color,value:#000000,tabindex:1,disabled");
962962
varaccentColorHex=helper.node("input|id:link-form-input-accent-hex,class:form-group-item-half link-form-input-accent-hex,type:text,placeholder:Hex code,value:#000000,tabindex:1,maxlength:7,disabled");
963963
varaccentColorInputHelper=helper.node("div|class:form-helper");
964-
varaccentColorInputHelperItem=helper.node("p:Use this colour to override the global accent colour.|class:link-form-input-accent-helper form-helper-item");
964+
varaccentColorInputHelperItem=helper.node("p:Use this colour to override the global accent colour.|class:link-form-input-accent-helper form-helper-item disabled");
965965

966966
groupExistingRadioWrap.appendChild(groupExistingRadio);
967967
groupExistingLable.appendChild(groupExistingLableIcon);
@@ -1133,13 +1133,13 @@ var link = (function(){
11331133
accentCustomRadio.checked=true;
11341134
accentColorPicker.removeAttribute("disabled");
11351135
accentColorHex.removeAttribute("disabled");
1136-
helper.removeClass(form.querySelector(".link-form-input-accent-helper"),"disabled");
1136+
helper.removeClass(accentColorInputHelperItem,"disabled");
11371137
}else{
11381138
accentGlobalRadio.checked=true;
11391139
accentCustomRadio.checked=false;
11401140
accentColorPicker.setAttribute("disabled","");
11411141
accentColorHex.setAttribute("disabled","");
1142-
helper.addClass(form.querySelector(".link-form-input-accent-helper"),"disabled");
1142+
helper.addClass(accentColorInputHelperItem,"disabled");
11431143
};
11441144
if(stagedLink.link.accent.color.r!=null&&stagedLink.link.accent.color.g!=null&&stagedLink.link.accent.color.b!=null){
11451145
accentColorPicker.value=helper.convertColor.rgb.hex(stagedLink.link.accent.color);
@@ -1230,14 +1230,14 @@ var link = (function(){
12301230
stagedLink.link.accent.override=false;
12311231
accentColorPicker.setAttribute("disabled","");
12321232
accentColorHex.setAttribute("disabled","");
1233-
helper.addClass(accentColorInputHelper,"disabled");
1233+
helper.addClass(accentColorInputHelperItem,"disabled");
12341234
},false);
12351235
accentCustomRadio.addEventListener("change",function(){
12361236
stagedLink.link.accent.override=true;
12371237
stagedLink.link.accent.color=helper.convertColor.hex.rgb(accentColorPicker.value);
12381238
accentColorPicker.removeAttribute("disabled");
12391239
accentColorHex.removeAttribute("disabled");
1240-
helper.removeClass(accentColorInputHelper,"disabled");
1240+
helper.removeClass(accentColorInputHelperItem,"disabled");
12411241
},false);
12421242
accentColorPicker.addEventListener("change",function(){
12431243
if(helper.isHexNumber(this.value)){

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="5.31.0";
3+
varcurrent="5.31.1";
44

55
varname="Zonked Tarsier";
66

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "5.31.0",
5+
"version": "5.31.1",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)