parent
23687a0a71
commit
09a0041965
4 changed files with 12 additions and 4 deletions
6
web_src/js/vendor/jquery.are-you-sure.ts
vendored
6
web_src/js/vendor/jquery.are-you-sure.ts
vendored
|
@ -204,3 +204,9 @@ export function applyAreYouSure(selectorOrEl: string|Element|$, opts = {}) {
|
|||
export function reinitializeAreYouSure(selectorOrEl: string|Element|$) {
|
||||
$(selectorOrEl).trigger('reinitialize.areYouSure');
|
||||
}
|
||||
|
||||
export function ignoreAreYouSure(selectorOrEl: string|Element|$) {
|
||||
// here we should only add "ignore-dirty" but not remove "dirty".
|
||||
// because when using "enter" to submit a form, the "dirty" class will appear again before reloading.
|
||||
$(selectorOrEl).addClass('ignore-dirty');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue