jQuery.telligent.evolution.navigationConfirmation
The navigation confirmation module enables confirmation pop-ups when navigating away from the page.
Methods
enable
Enables the navigation confirmation message against a specific context ID and optional function identifying whether changes have been made. All actions that would navigate to a new URL not performed through a registered element's click event will cause the confirmation to be displayed as long as there is at least one enabled context with changes.
$.telligent.evolution.navigationConfirmation.enable(id, isChangedFunction)
disable
Disables the navigation confirmation message for a specific context ID. If all contexts are disabled, the navigation message will be disabled.
$.telligent.evolution.navigationConfirmation.disable(id)
isEnabled
Returns true if the provided context is enabled. If no context ID is provided, all contexts are checked.
$.telligent.evolution.navigationConfirmation.isEnabled(id)
register
OBSOLETE: Use enable(id)/disable(id) instead.
$.telligent.evolution.navigationConfirmation.register(elements)
ignoreClick
OBSOLETE: Use enable(id)/disable(id) instead.
$.telligent.evolution.navigationConfirmation.ignoreClick()