mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-05 12:29:54 -06:00
reset radio to "html" type link when displaying dialog again
This commit is contained in:
@@ -12,7 +12,9 @@ const addLink = (function() {
|
||||
function showDialog() {
|
||||
glob.activeDialog = dialogEl;
|
||||
|
||||
$('input:radio[name="add-link-type"]').filter('[value="html"]').attr('checked', true);
|
||||
$('input[name="add-link-type"]').each(function () {
|
||||
$(this).prop('checked', $(this).val() === "html");
|
||||
});
|
||||
|
||||
linkTitleEl.val('');
|
||||
clonePrefixEl.val('');
|
||||
|
||||
Reference in New Issue
Block a user