From 2e3169f68ced13f437982a67d468b6e18cfb6825 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 15 Nov 2020 14:12:48 -0500 Subject: Popup navigation style updates (#1035) * Add close function to Display * Add new sidebar with navigation and close buttons * Set up new navigation functionality * Remove old navigation --- ext/fg/js/float.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/fg/js') diff --git a/ext/fg/js/float.js b/ext/fg/js/float.js index 9f58439f..bc555ffd 100644 --- a/ext/fg/js/float.js +++ b/ext/fg/js/float.js @@ -63,7 +63,7 @@ class DisplayFloat extends Display { } onEscape() { - this._invokeOwner('closePopup'); + this.close(); } async getDocumentTitle() { @@ -83,6 +83,10 @@ class DisplayFloat extends Display { return data.data; } + close() { + this._invokeOwner('closePopup'); + } + // Message handling _onWindowMessage(e) { -- cgit v1.2.3