From 956c55ac9aad489b3d86dd25580cd9830e16cc8e Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 13 May 2017 15:52:08 -0700 Subject: [PATCH] Remove unused code for add-tag-to-all of album. I'll put it back when I actually make it work. --- frontends/etiquette_flask/static/common.js | 8 -------- frontends/etiquette_flask/templates/album.html | 6 ------ 2 files changed, 14 deletions(-) diff --git a/frontends/etiquette_flask/static/common.js b/frontends/etiquette_flask/static/common.js index 59e3140..94ad5bc 100644 --- a/frontends/etiquette_flask/static/common.js +++ b/frontends/etiquette_flask/static/common.js @@ -12,14 +12,6 @@ function create_message_bubble(message_area, message_positivity, message_text, l message_area.appendChild(message); setTimeout(function(){message_area.removeChild(message);}, lifespan); } -function add_album_tag(albumid, tagname, callback) -{ - if (tagname === ""){return} - var url = "/album/" + albumid; - data = new FormData(); - data.append("add_tag", tagname); - return post(url, data, callback); -} function post(url, data, callback) { diff --git a/frontends/etiquette_flask/templates/album.html b/frontends/etiquette_flask/templates/album.html index c2ae732..b2eacc7 100644 --- a/frontends/etiquette_flask/templates/album.html +++ b/frontends/etiquette_flask/templates/album.html @@ -140,12 +140,6 @@ bind_box_to_button(description_editor_box, save_button, ctrl_enter); var title_is_blank = {{ (album.title == '')|int }}; var blank_title_text = "Album {{album.id}}"; -function submit_tag(callback) -{ - add_photo_tag('{{album.id}}', add_tag_box.value, callback); - add_tag_box.value = ""; -} - function show_editor() { edit_button.classList.add("hidden");