mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-28 21:41:22 +08:00
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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user