From 56a0d8fc482058dcefcf6401efd8e9b8b6ca3f95 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Tue, 31 Dec 2019 21:00:23 -0700 Subject: [PATCH] [bug] fix modal close not animating out --- src/js/keyboard.js | 4 ++++ src/js/link.js | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/js/keyboard.js b/src/js/keyboard.js index 525f5610..c19c6d68 100644 --- a/src/js/keyboard.js +++ b/src/js/keyboard.js @@ -16,18 +16,22 @@ var keyboard = (function() { autoSuggest.close(); } else if (state.get.current().link.edit) { link.edit.item.close(); + modal.close(); shade.close(); data.save(); } else if (state.get.current().link.add) { link.add.item.close(); + modal.close(); shade.close(); data.save(); } else if (state.get.current().group.edit) { link.edit.group.close(); + modal.close(); shade.close(); data.save(); } else if (state.get.current().group.add) { link.add.group.close(); + modal.close(); shade.close(); data.save(); } else if (state.get.current().modal) { diff --git a/src/js/link.js b/src/js/link.js index c49f1ba9..5731c289 100644 --- a/src/js/link.js +++ b/src/js/link.js @@ -1416,6 +1416,7 @@ var link = (function() { shade.open({ action: function() { add.item.close(); + modal.close(); } }); pagelock.lock(); @@ -1424,7 +1425,6 @@ var link = (function() { close: function() { stagedLink.reset(); autoSuggest.close(); - modal.close(); pagelock.unlock(); }, selectGroup: function(groupIndex) { @@ -1468,6 +1468,7 @@ var link = (function() { shade.open({ action: function() { add.group.close(); + modal.close(); } }); pagelock.lock(); @@ -1476,7 +1477,6 @@ var link = (function() { close: function() { stagedGroup.reset(); autoSuggest.close(); - modal.close(); pagelock.unlock(); } } @@ -1522,6 +1522,7 @@ var link = (function() { shade.open({ action: function() { edit.item.close(); + modal.close(); } }); pagelock.lock(); @@ -1529,7 +1530,6 @@ var link = (function() { close: function() { stagedLink.reset(); autoSuggest.close(); - modal.close(); pagelock.unlock(); } }, @@ -1567,6 +1567,7 @@ var link = (function() { shade.open({ action: function() { edit.group.close(); + modal.close(); } }); pagelock.lock(); @@ -1574,7 +1575,6 @@ var link = (function() { close: function() { stagedGroup.reset(); autoSuggest.close(); - modal.close(); pagelock.unlock(); } }