aboutsummaryrefslogtreecommitdiffstats
path: root/public/assets/refinery/submit_continue.js
blob: d55eee219c46562365c62a28f895b2d1a52b0fc9 (plain) (blame)
1
(function(){this.init_submit_continue=function(){var n;return $("#submit_continue_button").click(submit_and_continue),$("form").change(function(){return $(this).attr("data-changes-made",!0)}),0<(n=$("#continue_editing")).length&&"no-prompt"!==n.attr("rel")&&$("#editor_switch a").click(function(n){if(0<$("form[data-changes-made]").length&&!confirm("translation missing: en.js.admin.confirm_changes"))return n.preventDefault()}),$("input[id=page_custom_slug]").change(function(){return $("#submit_continue_button").remove()})}}).call(this);