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

View File

@ -1 +1 @@
module.exports = { build_date:"2017-12-20T23:16:51-05:00", build_revision: "57c4465a37f7b2d67dde4dca0ba42c938c09bbbc" };
module.exports = { build_date:"2017-12-21T22:21:42-05:00", build_revision: "e007ec5e2173b5086a998363401fae3933091675" };