[bug] fix theme custom control tab index not changing in edit mode

This commit is contained in:
zombieFox 2020-01-08 21:52:47 -07:00
parent 05bb5acc6f
commit d521618883
6 changed files with 9 additions and 12 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "nighttab",
"version": "4.13.0",
"version": "4.13.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "nighttab",
"version": "4.13.0",
"version": "4.13.1",
"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

@ -2542,6 +2542,7 @@ var control = (function() {
path: "theme.custom.edit",
type: "checkbox",
func: function() {
theme.render.custom.tabIndex();
render.class();
}
}, {

View File

@ -2,7 +2,6 @@ var theme = (function() {
var _timerFontDisplay = null;
var _timerFontUi = null;
var _customThemeEdit = false;
var stagedThemeCustom = {
position: {
@ -1724,17 +1723,13 @@ var theme = (function() {
};
},
tabIndex: function() {
if (_customThemeEdit) {
if (state.get.current().theme.custom.edit && state.get.current().menu) {
helper.eA(".theme-custom-control-item").forEach(function(arrayItem, index) {
if (arrayItem.tabIndex == -2) {
arrayItem.tabIndex = 1;
};
arrayItem.tabIndex = 1;
});
} else {
helper.eA(".theme-custom-control-item").forEach(function(arrayItem, index) {
if (arrayItem.tabIndex == 1) {
arrayItem.tabIndex = -2;
};
arrayItem.tabIndex = -2;
});
};
}
@ -1791,6 +1786,7 @@ var theme = (function() {
style.check();
accent.random();
mod.accent.random();
mod.custom.close();
render.font.display.name();
render.font.display.weight();
render.font.display.style();

View File

@ -1,6 +1,6 @@
var version = (function() {
var current = "4.13.0";
var current = "4.13.1";
var name = "Naughty Goose";

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": "4.13.0",
"version": "4.13.1",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"