Skip to content

Commit 383ca26

Browse files
committed
[bug] fix some menu options not being disabled
1 parent 511a36b commit 383ca26

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
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": "4.37.1",
3+
"version": "4.37.2",
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/control.js‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6332,13 +6332,17 @@ var control = (function(){
63326332
};
63336333

63346334
render.dependents=function(){
6335+
vartype={
6336+
control: ["input","button","textarea"],
6337+
element: ["label","p","div"]
6338+
};
63356339
vardisable={
6336-
input: function(input,state){
6337-
if(input){
6340+
control: function(control,state){
6341+
if(control){
63386342
if(state){
6339-
input.disabled=false;
6343+
control.disabled=false;
63406344
}else{
6341-
input.disabled=true;
6345+
control.disabled=true;
63426346
};
63436347
};
63446348
},
@@ -7028,9 +7032,10 @@ var control = (function(){
70287032
arrayItem.dependents().forEach(function(arrayItem,index){
70297033
varelement=helper.eA(arrayItem);
70307034
element.forEach(function(arrayItem,index){
7031-
if(arrayItem.tagName.toLowerCase()=="input"){
7032-
disable.input(arrayItem,condition);
7033-
}else{
7035+
varelementType=arrayItem.tagName.toLowerCase();
7036+
if(type.control.includes(elementType)){
7037+
disable.control(arrayItem,condition);
7038+
}elseif(type.element.includes(elementType)){
70347039
disable.element(arrayItem,condition);
70357040
};
70367041
});

‎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="4.37.1";
3+
varcurrent="4.37.2";
44

55
varname="Naughty Goose";
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": "4.37.1",
5+
"version": "4.37.2",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)