From aca5b6c6362c415df501f76ef170794e77522242 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 17 Jun 2016 00:06:33 +0200 Subject: file/history: Add support to display preview of entries on hover Signed-off-by: Florian Pritz --- public_html/data/js/application.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'public_html/data/js') diff --git a/public_html/data/js/application.js b/public_html/data/js/application.js index 71aac8328..51b2c0c6d 100644 --- a/public_html/data/js/application.js +++ b/public_html/data/js/application.js @@ -47,6 +47,7 @@ define( Uploader.initialize(); TableSorter.initialize(); this.configureTooltips(); + this.setupHistoryPopovers(); this.setupToggleSelectAllEvent(); this.setupLineWrapToggle(); this.setupLazyLoadingImages(); @@ -68,6 +69,16 @@ define( }); }, + setupHistoryPopovers: function () { + $('#upload_history a').popover({ + trigger: 'hover', + placement: 'bottom', + html: true, + viewport: '#upload_history', + template: '' + }); + }, + setupToggleSelectAllEvent: function () { $('#history-all').on('click', function(event) { // Suppress click event on table heading -- cgit v1.2.3-24-g4f1b