diff options
| author | Pepper <pepper@scannerjammer.com> | 2016-09-20 13:20:53 -0400 |
|---|---|---|
| committer | Pepper <pepper@scannerjammer.com> | 2016-09-20 13:20:53 -0400 |
| commit | 22faaf9e55ba5611a58fdc82f59ffa2df5bbfdee (patch) | |
| tree | 574fc27a79b660f43bb564a041e188c465056ee0 | |
| parent | 81f397d177aa83d1ad79dddfd965675a1c27985b (diff) | |
clear gallery localstorage when you press C and remove copy button
| -rw-r--r-- | photoblaster/templates/gallery.html | 3 | ||||
| -rw-r--r-- | 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 = [ <div id="dump"> <div id="rebus"></div> <input id="urlz" type="text" /> - <div id="d_clip_container" style="position:relative"> - <div id="d_clip_button">copy</div> - </div> <button id="clear">clear</button> </div> <div id="images"> 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: |
