Fixed select all issue.
This commit is contained in:
parent
3c6bed4854
commit
f72b054ef5
|
@ -4,8 +4,8 @@ Easy Session Manager allows you to manage your Firefox session by backing up or
|
||||||
# Download
|
# Download
|
||||||
https://addons.mozilla.org/en-US/firefox/addon/easy-session-manager/
|
https://addons.mozilla.org/en-US/firefox/addon/easy-session-manager/
|
||||||
|
|
||||||
# Version: 0.1.7
|
# Version: 0.1.8
|
||||||
Fixed listing issue in selective open.
|
Fixed select all issue.
|
||||||
|
|
||||||
# Images
|
# Images
|
||||||
![1 Default interface with no sessions. ](images/pic1.png)
|
![1 Default interface with no sessions. ](images/pic1.png)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": " Easy Session Manager",
|
"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.",
|
"description": " Easy Session Manager allows you to manage your Firefox session by backing up or loading your saved sessions.",
|
||||||
|
|
||||||
"applications": {
|
"applications": {
|
||||||
|
|
|
@ -75,11 +75,22 @@ document.addEventListener("dblclick", (e) => {
|
||||||
let liTemplate = document.querySelector('#liTemplate');
|
let liTemplate = document.querySelector('#liTemplate');
|
||||||
|
|
||||||
for (let i = 0; i < keysLength; i++) {
|
for (let i = 0; i < keysLength; i++) {
|
||||||
let ulClone = document.importNode(ulTemplate.content, true);
|
let ulClone = document.importNode(ulTemplate.content, true);
|
||||||
let ulTag = ulClone.querySelector('.collection');
|
let ulTag = ulClone.querySelector('.collection');
|
||||||
let h2Txt = document.createTextNode("Window: " + (i + 1));
|
let selAll = ulClone.querySelector('input');
|
||||||
let store = json[keys[i]];
|
let h2Tag = ulClone.querySelector('.ulHeader');
|
||||||
let j = 0;
|
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 => {
|
store.forEach(tab => {
|
||||||
let liClone = document.importNode(liTemplate.content, true);
|
let liClone = document.importNode(liTemplate.content, true);
|
||||||
|
@ -95,12 +106,6 @@ document.addEventListener("dblclick", (e) => {
|
||||||
j++;
|
j++;
|
||||||
});
|
});
|
||||||
|
|
||||||
container.id = "editSelectionContainer";
|
|
||||||
ulClone.querySelector('#selectAll')
|
|
||||||
.addEventListener("click", function () {
|
|
||||||
toggleSelect("Win" + i);
|
|
||||||
});
|
|
||||||
ulClone.querySelector('.ulHeader').appendChild(h2Txt);
|
|
||||||
container.appendChild(ulClone);
|
container.appendChild(ulClone);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue