Skip to content

Instantly share code, notes, and snippets.

@mfpiccolo
Created May 16, 2013 07:00
Show Gist options
  • Save mfpiccolo/5589901 to your computer and use it in GitHub Desktop.
Save mfpiccolo/5589901 to your computer and use it in GitHub Desktop.
This is my attempt at fixing the reload problem after submitting a rename update.
jQuery ->
$("#modal-wrap").html("""<%= escape_javascript(render "account/events/edit", event: @event, product: @product) %>""")
$("#modal").trigger("reveal:close")
$("#modal").click(location.reload())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment