mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-06-30 14:21:05 +02:00
[bug] fix add link item missing first option
This commit is contained in:
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nightTab",
|
"name": "nightTab",
|
||||||
"version": "5.55.0",
|
"version": "5.55.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nightTab",
|
"name": "nightTab",
|
||||||
"version": "5.55.0",
|
"version": "5.55.1",
|
||||||
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -2304,13 +2304,15 @@ var link = (function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var makePostionOptions = function() {
|
var makePostionOptions = function() {
|
||||||
if (stagedLink.position.destination.item > 0) {
|
if (bookmarks.get().length > 0) {
|
||||||
|
|
||||||
while (groupExistingPosition.lastChild) {
|
while (groupExistingPosition.lastChild) {
|
||||||
groupExistingPosition.removeChild(groupExistingPosition.lastChild);
|
groupExistingPosition.removeChild(groupExistingPosition.lastChild);
|
||||||
};
|
};
|
||||||
|
|
||||||
var optionCount = 0;
|
var optionCount = 0;
|
||||||
if (stagedLink.position.destination.item > 0) {
|
|
||||||
|
if (stagedLink.position.destination.item >= 0) {
|
||||||
if (options.useStagedLink && stagedLink.position.origin.group == stagedLink.position.destination.group) {
|
if (options.useStagedLink && stagedLink.position.origin.group == stagedLink.position.destination.group) {
|
||||||
optionCount = optionCount + bookmarks.get()[stagedLink.position.origin.group].items.length;
|
optionCount = optionCount + bookmarks.get()[stagedLink.position.origin.group].items.length;
|
||||||
} else {
|
} else {
|
||||||
@ -2319,10 +2321,11 @@ var link = (function() {
|
|||||||
} else {
|
} else {
|
||||||
optionCount = 1;
|
optionCount = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
for (var i = 1; i <= optionCount; i++) {
|
for (var i = 1; i <= optionCount; i++) {
|
||||||
groupExistingPosition.appendChild(helper.node("option:" + helper.ordinalNumber(i)));
|
groupExistingPosition.appendChild(helper.node("option:" + helper.ordinalNumber(i)));
|
||||||
if (optionCount == i) {
|
if (optionCount == i) {
|
||||||
groupExistingPosition.selectedIndex = i - 1;
|
groupExistingPosition.selectedIndex = (i - 1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
var version = (function() {
|
var version = (function() {
|
||||||
|
|
||||||
var current = "5.55.0";
|
var current = "5.55.1";
|
||||||
|
|
||||||
var name = "Jaded Raven";
|
var name = "Jaded Raven";
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "nightTab",
|
"name": "nightTab",
|
||||||
"short_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.",
|
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
||||||
"version": "5.55.0",
|
"version": "5.55.1",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"chrome_url_overrides": {
|
"chrome_url_overrides": {
|
||||||
"newtab": "index.html"
|
"newtab": "index.html"
|
||||||
|
Reference in New Issue
Block a user