Fixed a bug where editing things wouldn't work.

This commit is contained in:
Azareal 2018-09-26 13:14:53 +10:00
parent 44ade585c6
commit 04abfbe34f
1 changed files with 4 additions and 4 deletions

View File

@ -360,8 +360,8 @@ function mainInit(){
$(".open_edit").click((event) => { $(".open_edit").click((event) => {
event.preventDefault(); event.preventDefault();
$(".hide_on_edit").hide(); $('.hide_on_edit').addClass("edit_opened");
$(".show_on_edit").show(); $('.show_on_edit').addClass("edit_opened");
}); });
$(".topic_item .submit_edit").click(function(event){ $(".topic_item .submit_edit").click(function(event){
@ -374,8 +374,8 @@ function mainInit(){
let topicStatusInput = $('.topic_status_input').val(); let topicStatusInput = $('.topic_status_input').val();
$(".topic_status_e:not(.open_edit)").html(topicStatusInput); $(".topic_status_e:not(.open_edit)").html(topicStatusInput);
$(".hide_on_edit").show(); $('.hide_on_edit').removeClass("edit_opened");
$(".show_on_edit").hide(); $('.show_on_edit').removeClass("edit_opened");
let formAction = this.form.getAttribute("action"); let formAction = this.form.getAttribute("action");
$.ajax({ $.ajax({