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");