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/float.html | 17 ++++++++++++----- ext/fg/js/float.js | 6 +++++- 2 files changed, 17 insertions(+), 6 deletions(-) (limited to 'ext/fg') diff --git a/ext/fg/float.html b/ext/fg/float.html index dc3e159a..818bee32 100644 --- a/ext/fg/float.html +++ b/ext/fg/float.html @@ -15,17 +15,13 @@ +
- -
+ +
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