diff --git a/core/module/theme/view/fontAdd/fontAdd.js.php b/core/module/theme/view/fontAdd/fontAdd.js.php index dd53c7cf..ab356c53 100644 --- a/core/module/theme/view/fontAdd/fontAdd.js.php +++ b/core/module/theme/view/fontAdd/fontAdd.js.php @@ -15,7 +15,8 @@ */ $(document).ready(function(){ $('input[name=fontAddFontImported]').prop('checked', true); - $('#fontAddFileWrapper').hide(); + $('input[name=fontAddFontUrl]').prop('checked', false); + $('#containerFontAddUrl').hide(); }); @@ -28,7 +29,8 @@ $("input[name=fontAddFontImported]").on("click", function() { } else { $('input[name=fontAddFontFile]').prop('checked', true); } - $('#fontAddFileWrapper').hide(); + $('#containerFontAddFile').hide(); + $('#containerFontAddUrl').show(); }); $("input[name=fontAddFontFile]").on("click", function() { @@ -37,5 +39,6 @@ $("input[name=fontAddFontFile]").on("click", function() { } else { $('input[name=fontAddFontImported]').prop('checked', true); } - $('#fontAddFileWrapper').show(); + $('#containerFontAddFile').show(); + $('#containerFontAddUrl').hide(); }); diff --git a/core/module/theme/view/fontAdd/fontAdd.php b/core/module/theme/view/fontAdd/fontAdd.php index 9085f503..ebe3daf9 100644 --- a/core/module/theme/view/fontAdd/fontAdd.php +++ b/core/module/theme/view/fontAdd/fontAdd.php @@ -30,14 +30,10 @@