rework image editor

This commit is contained in:
Luke Pulverenti 2015-09-17 13:24:23 -04:00
parent 5bccc1840e
commit 1bb7d85b87
9 changed files with 458 additions and 420 deletions

View file

@ -2,18 +2,28 @@
function paperDialogHashHandler(dlg, hash) {
var isActive = true;
function onHashChange(e, data) {
data = data.state;
isActive = data.hash == '#' + hash;
if (data.direction == 'back') {
if (dlg) {
if (data.hash != '#' + hash) {
if (!isActive) {
dlg.close();
dlg = null;
}
}
}
if (isActive) {
document.body.classList.add('bodyWithPopupOpen');
}
else {
document.body.classList.remove('bodyWithPopupOpen');
}
}
function onDialogClosed() {