summaryrefslogtreecommitdiffstats
path: root/public_html/data
diff options
context:
space:
mode:
Diffstat (limited to 'public_html/data')
-rw-r--r--public_html/data/css/style.css11
-rw-r--r--public_html/data/js/application.js11
2 files changed, 22 insertions, 0 deletions
diff --git a/public_html/data/css/style.css b/public_html/data/css/style.css
index f2c0542c9..4273ff896 100644
--- a/public_html/data/css/style.css
+++ b/public_html/data/css/style.css
@@ -296,6 +296,17 @@ body {
max-width: 400px;
}
+#upload_history .popover {
+ max-width: 100%;
+}
+
+#upload_history .popover pre {
+ background-color: transparent;
+ border: 0;
+ margin: 0;
+ line-height: 1.4;
+}
+
.upload_thumbnails {
margin: 0 auto;
width: 152px;
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