Have editor options survive across followed links

This commit is contained in:
Alex Dima 2016-09-06 16:03:32 +02:00
parent 4dfa2b4d44
commit c78c7308a8
28 changed files with 74 additions and 60 deletions

View file

@ -136,6 +136,14 @@
div.innerHTML = '<ul><li>' + allComponents.map(function(component) { return component.renderLoadingOptions(); }).join('</li><li>') + '</li></ul>';
document.body.appendChild(div);
var aElements = document.getElementsByTagName('a');
for (var i = 0; i < aElements.length; i++) {
var aElement = aElements[i];
if (aElement.className === 'loading-opts') {
aElement.href += window.location.search
}
}
})();