summaryrefslogtreecommitdiffstats
path: root/public_html/data/js
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-06-17 00:06:33 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-04 07:58:15 +0200
commitaca5b6c6362c415df501f76ef170794e77522242 (patch)
tree30dbb50be348d6d5ffcd81363fcb1b9ec372b226 /public_html/data/js
parent8deb80b8d2c1c8d6f9831a777939d6d5da52a71a (diff)
file/history: Add support to display preview of entries on hover
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'public_html/data/js')
-rw-r--r--public_html/data/js/application.js11
1 files changed, 11 insertions, 0 deletions
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: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><pre class="popover-content"></pre></div>'
+ });
+ },
+
setupToggleSelectAllEvent: function () {
$('#history-all').on('click', function(event) {
// Suppress click event on table heading