beforeunload.js
原料药
BeforeUnload . enable (
# Only gets triggered if this returns truthy
if : -> inputHasChanged
# The warning message that is displayed
message : " You have entered data that is not yet saved. "
# If triggered by Turbolinks, call this function instead
# of displaying the warning message. Returning `false` from
# this function will still show the BeforeUnload alert.
评论0
最新资源