From 3a8d418182ee825e9492d8b21c6fe40e06caf06a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 28 Jan 2016 17:14:00 +0100 Subject: [PATCH] Overhauled to top/inline editor buttons --- .../templates/headIncludeJavaScript.tpl | 2 +- wcfsetup/install/files/js/WCF.js | 1 + .../files/js/WoltLab/WCF/BootstrapFrontend.js | 10 +- .../js/WoltLab/WCF/Controller/Clipboard.js | 162 ++++++++---------- .../js/WoltLab/WCF/Controller/Popover.js | 7 +- .../js/WoltLab/WCF/Ui/Dropdown/Simple.js | 9 +- .../files/js/WoltLab/WCF/Ui/Page/Action.js | 145 ++++++++++++++++ .../files/js/WoltLab/WCF/Ui/Page/JumpToTop.js | 81 +++++++++ .../files/js/WoltLab/WCF/Ui/Tooltip.js | 1 + wcfsetup/install/files/style/ui/dropdown.scss | 16 +- .../files/style/ui/dropdownInteractive.scss | 11 +- .../install/files/style/ui/pageAction.scss | 68 ++++++++ wcfsetup/install/files/style/ui/popover.scss | 1 + 13 files changed, 398 insertions(+), 116 deletions(-) create mode 100644 wcfsetup/install/files/js/WoltLab/WCF/Ui/Page/Action.js create mode 100644 wcfsetup/install/files/js/WoltLab/WCF/Ui/Page/JumpToTop.js create mode 100644 wcfsetup/install/files/style/ui/pageAction.scss diff --git a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl index 80dd468a0f..1e158c81d1 100644 --- a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl +++ b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl @@ -75,6 +75,7 @@ requirejs.config({ 'wcf.global.page.previous': '{capture assign=pagePrevious}{lang}wcf.global.page.previous{/lang}{/capture}{@$pagePrevious|encodeJS}', 'wcf.global.pageDirection': '{lang}wcf.global.pageDirection{/lang}', 'wcf.global.reason': '{lang}wcf.global.reason{/lang}', + 'wcf.global.scrollUp': '{lang}wcf.global.scrollUp{/lang}', 'wcf.global.sidebar.hideLeftSidebar': '{lang}wcf.global.sidebar.hideLeftSidebar{/lang}', 'wcf.global.sidebar.hideRightSidebar': '{lang}wcf.global.sidebar.hideRightSidebar{/lang}', 'wcf.global.sidebar.showLeftSidebar': '{lang}wcf.global.sidebar.showLeftSidebar{/lang}', @@ -87,7 +88,6 @@ requirejs.config({ 'wcf.page.sitemap': '{lang}wcf.page.sitemap{/lang}', 'wcf.style.changeStyle': '{lang}wcf.style.changeStyle{/lang}', 'wcf.user.activityPoint': '{lang}wcf.user.activityPoint{/lang}', - 'wcf.style.changeStyle': '{lang}wcf.style.changeStyle{/lang}', 'wcf.user.panel.markAllAsRead': '{lang}wcf.user.panel.markAllAsRead{/lang}', 'wcf.user.panel.markAsRead': '{lang}wcf.user.panel.markAsRead{/lang}', 'wcf.user.panel.settings': '{lang}wcf.user.panel.settings{/lang}', diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 1f2763acbf..5672aec6a1 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1010,6 +1010,7 @@ WCF.Dropdown.Interactive.Handler = { if (this._dropdownContainer === null) { this._dropdownContainer = $('