Fixed select all issue.

This commit is contained in:
Maxim Stewart 2019-04-06 00:04:17 -05:00
parent 3c6bed4854
commit f72b054ef5
3 changed files with 19 additions and 14 deletions

View File

@ -4,8 +4,8 @@ Easy Session Manager allows you to manage your Firefox session by backing up or
# Download
https://addons.mozilla.org/en-US/firefox/addon/easy-session-manager/
# Version: 0.1.7
Fixed listing issue in selective open.
# Version: 0.1.8
Fixed select all issue.
# Images
![1 Default interface with no sessions. ](images/pic1.png)

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": " Easy Session Manager",
"version": "0.1.7",
"version": "0.1.8",
"description": " Easy Session Manager allows you to manage your Firefox session by backing up or loading your saved sessions.",
"applications": {

View File

@ -75,11 +75,22 @@ document.addEventListener("dblclick", (e) => {
let liTemplate = document.querySelector('#liTemplate');
for (let i = 0; i < keysLength; i++) {
let ulClone = document.importNode(ulTemplate.content, true);
let ulTag = ulClone.querySelector('.collection');
let h2Txt = document.createTextNode("Window: " + (i + 1));
let store = json[keys[i]];
let j = 0;
let ulClone = document.importNode(ulTemplate.content, true);
let ulTag = ulClone.querySelector('.collection');
let selAll = ulClone.querySelector('input');
let h2Tag = ulClone.querySelector('.ulHeader');
let ulLblTag = ulClone.querySelector('label');
let h2Txt = document.createTextNode("Window: " + (i + 1));
let store = json[keys[i]];
let j = 0;
container.id = "editSelectionContainer";
selAll.id = "selectAllWin" + i;
ulLblTag.htmlFor = "selectAllWin" + i;
selAll.addEventListener("click", function () {
toggleSelect("Win" + i);
});
h2Tag.appendChild(h2Txt);
store.forEach(tab => {
let liClone = document.importNode(liTemplate.content, true);
@ -95,12 +106,6 @@ document.addEventListener("dblclick", (e) => {
j++;
});
container.id = "editSelectionContainer";
ulClone.querySelector('#selectAll')
.addEventListener("click", function () {
toggleSelect("Win" + i);
});
ulClone.querySelector('.ulHeader').appendChild(h2Txt);
container.appendChild(ulClone);
}