From 04abfbe34f1fbadd16eef4f29227da4bac639608 Mon Sep 17 00:00:00 2001 From: Azareal Date: Wed, 26 Sep 2018 13:14:53 +1000 Subject: [PATCH] Fixed a bug where editing things wouldn't work. --- public/global.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/global.js b/public/global.js index 4f840dd6..bbd6956d 100644 --- a/public/global.js +++ b/public/global.js @@ -360,8 +360,8 @@ function mainInit(){ $(".open_edit").click((event) => { event.preventDefault(); - $(".hide_on_edit").hide(); - $(".show_on_edit").show(); + $('.hide_on_edit').addClass("edit_opened"); + $('.show_on_edit').addClass("edit_opened"); }); $(".topic_item .submit_edit").click(function(event){ @@ -374,8 +374,8 @@ function mainInit(){ let topicStatusInput = $('.topic_status_input').val(); $(".topic_status_e:not(.open_edit)").html(topicStatusInput); - $(".hide_on_edit").show(); - $(".show_on_edit").hide(); + $('.hide_on_edit').removeClass("edit_opened"); + $('.show_on_edit').removeClass("edit_opened"); let formAction = this.form.getAttribute("action"); $.ajax({