reset radio to "html" type link when displaying dialog again

This commit is contained in:
azivner
2017-12-21 23:13:28 -05:00
parent e007ec5e21
commit 4a3169dfdd
2 changed files with 4 additions and 2 deletions

View File

@@ -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('');