mirror of
https://github.com/zadam/trilium.git
synced 2025-01-10 01:00:43 +08:00
fix visibility of hyper-link in repeatedly opened dialog
This commit is contained in:
parent
f54f6d09b0
commit
08edc521e4
1 changed files with 3 additions and 2 deletions
|
@ -17,7 +17,6 @@ export async function showDialog(widget) {
|
|||
|
||||
$addLinkTitleSettings.toggle(!textTypeWidget.hasSelection());
|
||||
|
||||
updateTitleFormGroupVisibility();
|
||||
$addLinkTitleSettings.find('input[type=radio]').on('change', updateTitleFormGroupVisibility);
|
||||
|
||||
// with selection hyper link is implied
|
||||
|
@ -28,6 +27,8 @@ export async function showDialog(widget) {
|
|||
$addLinkTitleSettings.find("input[value='reference-link']").prop("checked", true);
|
||||
}
|
||||
|
||||
updateTitleFormGroupVisibility();
|
||||
|
||||
utils.openDialog($dialog);
|
||||
|
||||
$autoComplete.val('').trigger('focus');
|
||||
|
@ -89,4 +90,4 @@ $form.on('submit', () => {
|
|||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue