Fix update announcement setting bug.
This commit is contained in:
parent
2241862475
commit
f531708a5f
|
@ -110,6 +110,7 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
$(document).ready(function(){
|
||||||
var approverList = $(".hidden-approver-list");
|
var approverList = $(".hidden-approver-list");
|
||||||
$(".approver-check input").on("click",function(){
|
$(".approver-check input").on("click",function(){
|
||||||
var el = $(this);
|
var el = $(this);
|
||||||
|
@ -123,6 +124,7 @@
|
||||||
approverList.find("#check_" + el.val()).remove();
|
approverList.find("#check_" + el.val()).remove();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
<div id="notification"><%= t("announcement.click_on_submit") %></div>
|
<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| %>
|
<%= form_for @setting, url: (@setting.new_record? ? admin_announcement_createsettings_path : admin_announcement_updatesettings_path), html: {class: "form-horizontal main-forms"} do |f| %>
|
||||||
|
|
Loading…
Reference in New Issue