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
|
||||
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)
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -77,10 +77,21 @@ document.addEventListener("dblclick", (e) => {
|
|||
for (let i = 0; i < keysLength; i++) {
|
||||
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);
|
||||
let inptTag = liClone.querySelector("input");
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue