summaryrefslogtreecommitdiffstats
path: root/data/js
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-08-05 19:40:09 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-08-05 21:51:57 +0200
commit768bf6485cc73ad9b508b227fed8b3fcc3c6b65f (patch)
treee9bbdb3169d867a24167af9773f8140ec88fc7d9 /data/js
parentae244fdb9fd28db4e1323b5d4da5803699be3412 (diff)
Add history page with thumbnails of images
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'data/js')
-rw-r--r--data/js/script.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/js/script.js b/data/js/script.js
index a7cf3aa54..f747941e5 100644
--- a/data/js/script.js
+++ b/data/js/script.js
@@ -62,6 +62,22 @@ function fixedEncodeURIComponent (str) {
window.lines_wrapped = !window.lines_wrapped;
});
+ $('.upload_history_thumbnails a').popover({
+ trigger: "hover",
+ placement: "bottom",
+ html: true,
+ });
+
+ function handle_resize() {
+ var div = $('.upload_history_thumbnails');
+ div.width(div.parent().width() - (div.parent().width() % div.find('a').outerWidth(true)));
+ }
+
+ $(window).resize(function() {
+ handle_resize();
+ });
+ handle_resize();
+
// check file size before uploading if browser support html5
if (window.File && window.FileList) {
function checkFileUpload(evt) {