Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-allow users to add magic tags to featured image #894

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/views/import-metabox-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ class="form-control fz-textarea-tagify"><?php echo esc_html( feedzy_custom_tag_e
</div>
<div class="help-text">
<?php
esc_html_e( 'You can use the magic tags, your own URL or leave it empty.', 'feedzy-rss-feeds' );
esc_html_e( 'You can use the magic tags, or leave it empty.', 'feedzy-rss-feeds' );
?>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions includes/views/js/import-metabox-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) ) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -836,4 +836,4 @@
$( '.feedzy-open-media' ).html( feedzy.i10n.action_btn_text_1 );
});
}
})(jQuery, feedzy);
}(jQuery, feedzy));
Loading