rework image editor
This commit is contained in:
parent
5bccc1840e
commit
1bb7d85b87
9 changed files with 458 additions and 420 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue