From ccd97adc10b511102b89a901d437b87fbc7b9916 Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Mon, 26 Feb 2024 16:58:14 +0200 Subject: [PATCH] fix: re-allow users to add magic tags to featured image --- includes/views/js/import-metabox-edit.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/views/js/import-metabox-edit.js b/includes/views/js/import-metabox-edit.js index a55e2e3c..74f42ee7 100644 --- a/includes/views/js/import-metabox-edit.js +++ b/includes/views/js/import-metabox-edit.js @@ -265,7 +265,7 @@ $( '.feedzy-keyword-filter, #feedzy-import-source' ).on('keyup keypress', function(e) { var keyCode = e.keyCode || e.which; var addTagBtn = $( this ).parents( '.fz-input-icon' ).find( '.add-outside-tags' ); - + if ( '' === $( this ).val() ) { addTagBtn.attr( 'disabled', true ); } else if ( addTagBtn.hasClass( 'fz-plus-btn' ) ) { @@ -481,8 +481,8 @@ // Tagify for normal mix content field. $( '.fz-tagify-image' ).tagify( { mode: 'mix', - editTags: false, - userInput: false, + editTags: true, + userInput: true, addTagOn: [], templates: { tag: function(tagData) { @@ -836,4 +836,4 @@ $( '.feedzy-open-media' ).html( feedzy.i10n.action_btn_text_1 ); }); } -})(jQuery, feedzy); +}(jQuery, feedzy));