Fix update announcement setting bug.

This commit is contained in:
BoHung Chiu 2020-08-03 16:35:08 +08:00
parent 2241862475
commit f531708a5f
1 changed files with 14 additions and 12 deletions

View File

@ -110,6 +110,7 @@
}
})
}
$(document).ready(function(){
var approverList = $(".hidden-approver-list");
$(".approver-check input").on("click",function(){
var el = $(this);
@ -123,6 +124,7 @@
approverList.find("#check_" + el.val()).remove();
}
})
})
</script>
<div id="notification"><%= t("announcement.click_on_submit") %></div>
<%= form_for @setting, url: (@setting.new_record? ? admin_announcement_createsettings_path : admin_announcement_updatesettings_path), html: {class: "form-horizontal main-forms"} do |f| %>