Fix areYouSure confirm (#32941)

See the comment
This commit is contained in:
wxiaoguang 2024-12-22 01:11:22 +08:00 committed by GitHub
parent 23687a0a71
commit 09a0041965
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 4 deletions

View file

@ -16,6 +16,7 @@ import {GET, POST} from '../modules/fetch.ts';
import {showErrorToast} from '../modules/toast.ts';
import {initRepoIssueSidebar} from './repo-issue-sidebar.ts';
import {fomanticQuery} from '../modules/fomantic/base.ts';
import {ignoreAreYouSure} from '../vendor/jquery.are-you-sure.ts';
const {appSubUrl} = window.config;
@ -578,7 +579,7 @@ export function initRepoIssueTitleEdit() {
}
}
}
issueTitleEditor.classList.remove('dirty');
ignoreAreYouSure(issueTitleEditor);
window.location.reload();
} catch (error) {
console.error(error);