Sha256: 3cb0976f51b2bc837e5d6e43c0a3c48235ec52432767d16eedbbda163fa7b6f6

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

@init_submit_continue = ->
  $("#submit_continue_button").click submit_and_continue
  $("form").change (e) ->
    $(this).attr "data-changes-made", true

  if (continue_editing_button = $("#continue_editing")).length > 0 and continue_editing_button.attr("rel") != "no-prompt"
    $("#editor_switch a").click (e) ->
      if $("form[data-changes-made]").length > 0
        e.preventDefault() unless confirm("<%= ::I18n.t('confirm_changes', :scope => 'refinery.js.admin') %>")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-core-2.0.3 app/assets/javascripts/refinery/submit_continue.js.coffee.erb