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