mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
refactoring of legacy js events
This commit is contained in:
@@ -44,7 +44,7 @@ $dialog.on('shown.bs.modal', () => {
|
||||
shownCb({ $dialog, $question, $answer, $form });
|
||||
}
|
||||
|
||||
$answer.focus().select();
|
||||
$answer.trigger('focus').select();
|
||||
});
|
||||
|
||||
$dialog.on("hidden.bs.modal", () => {
|
||||
@@ -53,7 +53,7 @@ $dialog.on("hidden.bs.modal", () => {
|
||||
}
|
||||
});
|
||||
|
||||
$form.submit(() => {
|
||||
$form.on('submit', () => {
|
||||
resolve($answer.val());
|
||||
|
||||
$dialog.modal('hide');
|
||||
|
||||
Reference in New Issue
Block a user