From 22faaf9e55ba5611a58fdc82f59ffa2df5bbfdee Mon Sep 17 00:00:00 2001 From: Pepper Date: Tue, 20 Sep 2016 13:20:53 -0400 Subject: clear gallery localstorage when you press C and remove copy button --- photoblaster/templates/gallery.html | 3 --- share/frontend/gallery-static/js/main.js | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/photoblaster/templates/gallery.html b/photoblaster/templates/gallery.html index f409952..48eb31d 100644 --- a/photoblaster/templates/gallery.html +++ b/photoblaster/templates/gallery.html @@ -107,9 +107,6 @@ var imagedata = [
-
-
copy
-
diff --git a/share/frontend/gallery-static/js/main.js b/share/frontend/gallery-static/js/main.js index e57e17c..aadc7e1 100644 --- a/share/frontend/gallery-static/js/main.js +++ b/share/frontend/gallery-static/js/main.js @@ -48,6 +48,7 @@ var Dump = { $("#rebus").html("") $("#urlz").val("") Dump.current_urls = [] + window.localStorage.setItem('urls', "") // clip.setText("") }, load_rebus: function(){ @@ -101,8 +102,10 @@ var Main = { // BS case 8: - if (! Main.editing) + if (! Main.editing) { + event.stopPropagation() Dump.backspace() + } return false // C case 67: -- cgit v1.2.3-70-g09d2 From ffd2251364b3c378ff2c4cbd82f9704920470c71 Mon Sep 17 00:00:00 2001 From: Pepper Date: Tue, 20 Sep 2016 13:23:03 -0400 Subject: dont need zeroclipboard.js anymore either --- photoblaster/templates/gallery.html | 1 - 1 file changed, 1 deletion(-) diff --git a/photoblaster/templates/gallery.html b/photoblaster/templates/gallery.html index 48eb31d..3cf51f5 100644 --- a/photoblaster/templates/gallery.html +++ b/photoblaster/templates/gallery.html @@ -22,7 +22,6 @@ var imagedata = [ - -- cgit v1.2.3-70-g09d2