Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../assets/js/admin/forms
File: overview.js
done( res );
[500] Fix | Delete
}
[501] Fix | Delete
[502] Fix | Delete
} ).fail( function( jqXHR, textStatus, errorThrown ) {
[503] Fix | Delete
[504] Fix | Delete
app.alertModal( errorThrown, {} );
[505] Fix | Delete
[506] Fix | Delete
} ).always( function() {
[507] Fix | Delete
[508] Fix | Delete
if ( typeof always === 'function' ) {
[509] Fix | Delete
always();
[510] Fix | Delete
}
[511] Fix | Delete
} );
[512] Fix | Delete
},
[513] Fix | Delete
[514] Fix | Delete
/**
[515] Fix | Delete
* Update all tags choices storage.
[516] Fix | Delete
*
[517] Fix | Delete
* @since 1.7.5
[518] Fix | Delete
*
[519] Fix | Delete
* @param {Array} allTagsChoices New all tags choices.
[520] Fix | Delete
*/
[521] Fix | Delete
updateAllTagsChoices: function( allTagsChoices ) {
[522] Fix | Delete
[523] Fix | Delete
if ( ! allTagsChoices ) {
[524] Fix | Delete
return;
[525] Fix | Delete
}
[526] Fix | Delete
[527] Fix | Delete
wpforms_admin_forms_overview.all_tags_choices = allTagsChoices;
[528] Fix | Delete
[529] Fix | Delete
// Update Tags Filter items.
[530] Fix | Delete
el.$tagsFilterSelect.each( function() {
[531] Fix | Delete
app.initChoicesJS( $( this ) );
[532] Fix | Delete
} );
[533] Fix | Delete
[534] Fix | Delete
// Show Tags Filter and Manage Tags button if at least one tag exists.
[535] Fix | Delete
if ( wpforms_admin_forms_overview.all_tags_choices.length > 0 ) {
[536] Fix | Delete
$( '.wpforms-tags-filter, .wpforms-manage-tags' ).removeClass( 'wpforms-hidden' );
[537] Fix | Delete
}
[538] Fix | Delete
},
[539] Fix | Delete
[540] Fix | Delete
/**
[541] Fix | Delete
* Init Choices.js on the given select input element.
[542] Fix | Delete
*
[543] Fix | Delete
* @since 1.7.5
[544] Fix | Delete
*
[545] Fix | Delete
* @param {jQuery} $select Select input.
[546] Fix | Delete
*
[547] Fix | Delete
* @returns {Choices} Choices.js instance.
[548] Fix | Delete
*/
[549] Fix | Delete
initChoicesJS: function( $select ) {
[550] Fix | Delete
[551] Fix | Delete
// Skip in certain cases.
[552] Fix | Delete
if (
[553] Fix | Delete
! wpforms_admin_forms_overview.choicesjs_config ||
[554] Fix | Delete
! $select.length ||
[555] Fix | Delete
typeof window.Choices !== 'function'
[556] Fix | Delete
) {
[557] Fix | Delete
return false;
[558] Fix | Delete
}
[559] Fix | Delete
[560] Fix | Delete
var choicesObj,
[561] Fix | Delete
config = wpforms_admin_forms_overview.choicesjs_config;
[562] Fix | Delete
[563] Fix | Delete
if ( ! $select.data( 'tags-filter' ) ) {
[564] Fix | Delete
config.noResultsText = wpforms_admin_forms_overview.strings.add_new_tag;
[565] Fix | Delete
}
[566] Fix | Delete
[567] Fix | Delete
// Add arrow placeholder.
[568] Fix | Delete
// It is needed to catch the arrow click event in the specific case
[569] Fix | Delete
// when Tags Filter has many selected tags which overflow the Choices.js control.
[570] Fix | Delete
config.callbackOnInit = function() {
[571] Fix | Delete
$select.closest( '.choices__inner' ).append( '<div class="choices__arrow"></div>' );
[572] Fix | Delete
[573] Fix | Delete
wpf.initMultipleSelectWithSearch( this );
[574] Fix | Delete
wpf.showMoreButtonForChoices( this.containerOuter.element );
[575] Fix | Delete
};
[576] Fix | Delete
[577] Fix | Delete
// Init or get Choices.js object instance.
[578] Fix | Delete
if ( $select.data( 'choice' ) === 'active' ) {
[579] Fix | Delete
choicesObj = $select.data( 'choicesjs' );
[580] Fix | Delete
} else {
[581] Fix | Delete
choicesObj = new Choices( $select[0], config );
[582] Fix | Delete
}
[583] Fix | Delete
[584] Fix | Delete
// Backup current value.
[585] Fix | Delete
var currentValue = choicesObj.getValue( true );
[586] Fix | Delete
[587] Fix | Delete
// Update all tags choices. We need to do it evey time, since tags could be added dynamically.
[588] Fix | Delete
choicesObj
[589] Fix | Delete
.clearStore()
[590] Fix | Delete
.setChoices(
[591] Fix | Delete
wpforms_admin_forms_overview.all_tags_choices,
[592] Fix | Delete
'value',
[593] Fix | Delete
'label',
[594] Fix | Delete
true
[595] Fix | Delete
)
[596] Fix | Delete
.setChoiceByValue( currentValue );
[597] Fix | Delete
[598] Fix | Delete
$select.data(
[599] Fix | Delete
'choicesjs',
[600] Fix | Delete
choicesObj
[601] Fix | Delete
);
[602] Fix | Delete
[603] Fix | Delete
return choicesObj;
[604] Fix | Delete
},
[605] Fix | Delete
[606] Fix | Delete
/**
[607] Fix | Delete
* Init Edit Tags Bulk Action item.
[608] Fix | Delete
*
[609] Fix | Delete
* @since 1.7.5
[610] Fix | Delete
*/
[611] Fix | Delete
initEditTagsBulkActionItem: function() {
[612] Fix | Delete
[613] Fix | Delete
if ( wpforms_admin_forms_overview.strings.is_tags_column_hidden ) {
[614] Fix | Delete
$( '.bulkactions option[value="edit_tags"]' ).addClass( 'wpforms-hidden' );
[615] Fix | Delete
}
[616] Fix | Delete
},
[617] Fix | Delete
[618] Fix | Delete
/**
[619] Fix | Delete
* Init tags filter.
[620] Fix | Delete
*
[621] Fix | Delete
* @since 1.7.5
[622] Fix | Delete
*/
[623] Fix | Delete
initTagsFilter: function() {
[624] Fix | Delete
[625] Fix | Delete
el.$tagsFilterSelect.each( function() {
[626] Fix | Delete
app.initChoicesJS( $( this ) );
[627] Fix | Delete
} );
[628] Fix | Delete
},
[629] Fix | Delete
[630] Fix | Delete
/**
[631] Fix | Delete
* Click the tags "Filter" button.
[632] Fix | Delete
*
[633] Fix | Delete
* @since 1.7.5
[634] Fix | Delete
*
[635] Fix | Delete
* @param {object} event Event object.
[636] Fix | Delete
*/
[637] Fix | Delete
tagsFilterClick: function( event ) {
[638] Fix | Delete
[639] Fix | Delete
var $button = $( this ),
[640] Fix | Delete
$select = $button.closest( '.wpforms-tags-filter' ).find( 'select' ),
[641] Fix | Delete
choicesObj = $select.data( 'choicesjs' ),
[642] Fix | Delete
url = new URL( wpforms_admin_forms_overview.strings.base_url ),
[643] Fix | Delete
tagsIds = choicesObj.getValue( true ),
[644] Fix | Delete
tags = wpforms_admin_forms_overview.all_tags_choices.filter( function( choice ) {
[645] Fix | Delete
return tagsIds.indexOf( choice.value ) > -1;
[646] Fix | Delete
} );
[647] Fix | Delete
[648] Fix | Delete
if ( tags.length ) {
[649] Fix | Delete
url.searchParams.append(
[650] Fix | Delete
'tags',
[651] Fix | Delete
_.map( tags, 'slug' ).join( ',' )
[652] Fix | Delete
);
[653] Fix | Delete
}
[654] Fix | Delete
[655] Fix | Delete
window.location.href = url.href;
[656] Fix | Delete
},
[657] Fix | Delete
[658] Fix | Delete
/**
[659] Fix | Delete
* Click the "Manage Tags" button.
[660] Fix | Delete
*
[661] Fix | Delete
* @since 1.7.5
[662] Fix | Delete
*
[663] Fix | Delete
* @param {object} event Event object.
[664] Fix | Delete
*/
[665] Fix | Delete
manageTagsClick: function( event ) {
[666] Fix | Delete
[667] Fix | Delete
var options = {
[668] Fix | Delete
title: wpforms_admin_forms_overview.strings.manage_tags_title,
[669] Fix | Delete
content: app.getManageTagsContent(),
[670] Fix | Delete
icon: 'fa fa-tags',
[671] Fix | Delete
type: 'blue',
[672] Fix | Delete
boxWidth: '550px',
[673] Fix | Delete
buttons: {
[674] Fix | Delete
cancel: {
[675] Fix | Delete
text: wpforms_admin.cancel,
[676] Fix | Delete
keys: [ 'esc' ],
[677] Fix | Delete
},
[678] Fix | Delete
},
[679] Fix | Delete
onOpenBefore: function() {
[680] Fix | Delete
[681] Fix | Delete
this.$$confirm && this.$$confirm.prop( 'disabled', true );
[682] Fix | Delete
$( 'body' ).addClass( 'wpforms-manage-tags-modal' );
[683] Fix | Delete
},
[684] Fix | Delete
onDestroy: function() {
[685] Fix | Delete
$( 'body' ).removeClass( 'wpforms-manage-tags-modal' );
[686] Fix | Delete
},
[687] Fix | Delete
};
[688] Fix | Delete
[689] Fix | Delete
var confirm = app.getManageTagsConfirmSettings();
[690] Fix | Delete
[691] Fix | Delete
if ( confirm ) {
[692] Fix | Delete
options.buttons = {
[693] Fix | Delete
confirm: confirm,
[694] Fix | Delete
cancel: options.buttons.cancel,
[695] Fix | Delete
};
[696] Fix | Delete
}
[697] Fix | Delete
[698] Fix | Delete
$.confirm( options );
[699] Fix | Delete
},
[700] Fix | Delete
[701] Fix | Delete
/**
[702] Fix | Delete
* Get Manage Tags modal content.
[703] Fix | Delete
*
[704] Fix | Delete
* @since 1.7.5
[705] Fix | Delete
*
[706] Fix | Delete
* @returns {string} Content of the modal.
[707] Fix | Delete
*/
[708] Fix | Delete
getManageTagsContent: function() {
[709] Fix | Delete
[710] Fix | Delete
var allTags = wpforms_admin_forms_overview.all_tags_choices;
[711] Fix | Delete
[712] Fix | Delete
if ( allTags.length === 0 ) {
[713] Fix | Delete
return wpforms_admin_forms_overview.strings.manage_tags_no_tags;
[714] Fix | Delete
}
[715] Fix | Delete
[716] Fix | Delete
var content = wpforms_admin_forms_overview.strings.manage_tags_desc,
[717] Fix | Delete
tags = [];
[718] Fix | Delete
[719] Fix | Delete
for ( var i = 0; i < allTags.length; i++ ) {
[720] Fix | Delete
tags.push(
[721] Fix | Delete
`<input type="checkbox" value="${ allTags[ i ].value }" id="wpforms-tag-${ allTags[ i ].value }">
[722] Fix | Delete
<label for="wpforms-tag-${ allTags[ i ].value }">
[723] Fix | Delete
${ allTags[ i ].label }
[724] Fix | Delete
<span>(${ allTags[ i ].count })</span>
[725] Fix | Delete
</label>`
[726] Fix | Delete
);
[727] Fix | Delete
}
[728] Fix | Delete
[729] Fix | Delete
content += `<div class="wpforms-manage-tags-items">${ tags.join( '' ) }</div>
[730] Fix | Delete
<div class="wpforms-manage-tags-notice wpforms-hidden"></div>`;
[731] Fix | Delete
[732] Fix | Delete
return content;
[733] Fix | Delete
},
[734] Fix | Delete
[735] Fix | Delete
/**
[736] Fix | Delete
* Get Manage Tags modal confirm button settings.
[737] Fix | Delete
*
[738] Fix | Delete
* @since 1.7.5
[739] Fix | Delete
*
[740] Fix | Delete
* @returns {object} Confirm button settings.
[741] Fix | Delete
*/
[742] Fix | Delete
getManageTagsConfirmSettings: function() {
[743] Fix | Delete
[744] Fix | Delete
if ( wpforms_admin_forms_overview.all_tags_choices.length === 0 ) {
[745] Fix | Delete
return false;
[746] Fix | Delete
}
[747] Fix | Delete
[748] Fix | Delete
return {
[749] Fix | Delete
text: wpforms_admin_forms_overview.strings.manage_tags_save,
[750] Fix | Delete
btnClass: 'btn-confirm',
[751] Fix | Delete
keys: [ 'enter' ],
[752] Fix | Delete
action: function() {
[753] Fix | Delete
[754] Fix | Delete
var checkedTags = [];
[755] Fix | Delete
[756] Fix | Delete
$( '.wpforms-manage-tags-items input:checked' ).each( function() {
[757] Fix | Delete
checkedTags.push( $( this ).val() );
[758] Fix | Delete
} );
[759] Fix | Delete
[760] Fix | Delete
$.post(
[761] Fix | Delete
wpforms_admin.ajax_url,
[762] Fix | Delete
{
[763] Fix | Delete
action: 'wpforms_admin_forms_overview_delete_tags',
[764] Fix | Delete
nonce: wpforms_admin_forms_overview.strings.nonce,
[765] Fix | Delete
tags: checkedTags,
[766] Fix | Delete
}
[767] Fix | Delete
).done( function( res ) {
[768] Fix | Delete
[769] Fix | Delete
if ( ! res.success || ! res.data ) {
[770] Fix | Delete
app.alertModal( res.data || '', {} );
[771] Fix | Delete
[772] Fix | Delete
return;
[773] Fix | Delete
}
[774] Fix | Delete
[775] Fix | Delete
app.manageTagsResultModal( res.data.deleted );
[776] Fix | Delete
[777] Fix | Delete
} ).fail( function( jqXHR, textStatus, errorThrown ) {
[778] Fix | Delete
[779] Fix | Delete
app.alertModal( errorThrown, {} );
[780] Fix | Delete
[781] Fix | Delete
} );
[782] Fix | Delete
},
[783] Fix | Delete
};
[784] Fix | Delete
},
[785] Fix | Delete
[786] Fix | Delete
/**
[787] Fix | Delete
* Change the Tag item hidden checkbox in the Manage Tags modal.
[788] Fix | Delete
*
[789] Fix | Delete
* @since 1.7.5
[790] Fix | Delete
*/
[791] Fix | Delete
manageTagsItemChange: function() {
[792] Fix | Delete
[793] Fix | Delete
var checkedCount = $( '.wpforms-manage-tags-items input:checked' ).length,
[794] Fix | Delete
$saveButton = $( this ).closest( '.jconfirm-box' ).find( '.btn-confirm' ),
[795] Fix | Delete
$notice = $( '.wpforms-manage-tags-notice' ),
[796] Fix | Delete
noticeHtml = checkedCount > 1 ?
[797] Fix | Delete
wpforms_admin_forms_overview.strings.manage_tags_n_tags.replace( '%d', checkedCount ) :
[798] Fix | Delete
wpforms_admin_forms_overview.strings.manage_tags_one_tag;
[799] Fix | Delete
[800] Fix | Delete
$saveButton.prop( 'disabled', checkedCount === 0 );
[801] Fix | Delete
[802] Fix | Delete
$notice
[803] Fix | Delete
.html( noticeHtml )
[804] Fix | Delete
.toggleClass( 'wpforms-hidden', checkedCount === 0 );
[805] Fix | Delete
},
[806] Fix | Delete
[807] Fix | Delete
/**
[808] Fix | Delete
* Open modal when the tags were deleted.
[809] Fix | Delete
*
[810] Fix | Delete
* @since 1.7.5
[811] Fix | Delete
*
[812] Fix | Delete
* @param {int} deletedCount Deleted tags count.
[813] Fix | Delete
*/
[814] Fix | Delete
manageTagsResultModal: function( deletedCount ) {
[815] Fix | Delete
[816] Fix | Delete
var deleted = deletedCount === 1 ?
[817] Fix | Delete
wpforms_admin_forms_overview.strings.manage_tags_one_deleted :
[818] Fix | Delete
wpforms_admin_forms_overview.strings.manage_tags_n_deleted.replace( '%d', deletedCount );
[819] Fix | Delete
[820] Fix | Delete
$.confirm( {
[821] Fix | Delete
title: wpforms_admin_forms_overview.strings.manage_tags_result_title,
[822] Fix | Delete
content: `<p>${ deleted }</p><p>${ wpforms_admin_forms_overview.strings.manage_tags_result_text }</p>`,
[823] Fix | Delete
icon: 'fa fa-exclamation-circle',
[824] Fix | Delete
type: 'green',
[825] Fix | Delete
buttons: {
[826] Fix | Delete
confirm: {
[827] Fix | Delete
text: wpforms_admin_forms_overview.strings.manage_tags_btn_refresh,
[828] Fix | Delete
btnClass: 'btn-confirm',
[829] Fix | Delete
keys: [ 'enter' ],
[830] Fix | Delete
action: function() {
[831] Fix | Delete
window.location.href = wpforms_admin_forms_overview.strings.base_url;
[832] Fix | Delete
},
[833] Fix | Delete
},
[834] Fix | Delete
},
[835] Fix | Delete
} );
[836] Fix | Delete
},
[837] Fix | Delete
[838] Fix | Delete
/**
[839] Fix | Delete
* Bulk edit tags action.
[840] Fix | Delete
*
[841] Fix | Delete
* @since 1.7.5
[842] Fix | Delete
*/
[843] Fix | Delete
openBulkEditTags: function() {
[844] Fix | Delete
[845] Fix | Delete
var forms = [],
[846] Fix | Delete
formsValue = [],
[847] Fix | Delete
tagsValue = [];
[848] Fix | Delete
[849] Fix | Delete
// Iterate checked forms.
[850] Fix | Delete
el.$listTableRows.find( 'input:checked' ).each( function( i ) {
[851] Fix | Delete
[852] Fix | Delete
var $input = $( this ),
[853] Fix | Delete
$tr = $input.closest( 'tr' ),
[854] Fix | Delete
$name = $tr.find( '.column-name > a:first-child' ),
[855] Fix | Delete
$tags = $tr.find( '.wpforms-column-tags-links' ),
[856] Fix | Delete
formTags = $tags.data( 'tags' ).toString() || '';
[857] Fix | Delete
[858] Fix | Delete
if ( $tags.data( 'is-editable' ) !== 1 ) {
[859] Fix | Delete
return;
[860] Fix | Delete
}
[861] Fix | Delete
[862] Fix | Delete
forms.push( {
[863] Fix | Delete
value: $input.val(),
[864] Fix | Delete
label: _.escape( $name.text() ),
[865] Fix | Delete
} );
[866] Fix | Delete
[867] Fix | Delete
formsValue.push( $input.val() );
[868] Fix | Delete
formTags = formTags.length ? formTags.split( ',' ) : [];
[869] Fix | Delete
tagsValue = _.union( tagsValue, formTags );
[870] Fix | Delete
} );
[871] Fix | Delete
[872] Fix | Delete
if ( forms.length === 0 ) {
[873] Fix | Delete
return;
[874] Fix | Delete
}
[875] Fix | Delete
[876] Fix | Delete
el.$bulkEditTagsRows.removeClass( 'wpforms-hidden' );
[877] Fix | Delete
[878] Fix | Delete
// Init Choices.js instance for forms.
[879] Fix | Delete
app.initChoicesJS( el.$bulkEditTagsForms )
[880] Fix | Delete
.clearStore()
[881] Fix | Delete
.setChoices(
[882] Fix | Delete
forms,
[883] Fix | Delete
'value',
[884] Fix | Delete
'label',
[885] Fix | Delete
true
[886] Fix | Delete
)
[887] Fix | Delete
.setChoiceByValue( formsValue );
[888] Fix | Delete
[889] Fix | Delete
// Init Choices.js instance for tags.
[890] Fix | Delete
app.initChoicesJS( el.$bulkEditTagsTags )
[891] Fix | Delete
.removeActiveItems()
[892] Fix | Delete
.setChoiceByValue( tagsValue );
[893] Fix | Delete
[894] Fix | Delete
// Update message.
[895] Fix | Delete
app.updateBulkEditTagsFormMessage( formsValue );
[896] Fix | Delete
},
[897] Fix | Delete
[898] Fix | Delete
/**
[899] Fix | Delete
* Update the message below the Bulk Edit Tags form.
[900] Fix | Delete
*
[901] Fix | Delete
* @since 1.7.5
[902] Fix | Delete
*
[903] Fix | Delete
* @param {Array} formsValue Forms value.
[904] Fix | Delete
*/
[905] Fix | Delete
updateBulkEditTagsFormMessage: function( formsValue ) {
[906] Fix | Delete
[907] Fix | Delete
var msg = wpforms_admin_forms_overview.strings.bulk_edit_n_forms;
[908] Fix | Delete
[909] Fix | Delete
if ( formsValue.length === 1 ) {
[910] Fix | Delete
msg = wpforms_admin_forms_overview.strings.bulk_edit_one_form;
[911] Fix | Delete
}
[912] Fix | Delete
[913] Fix | Delete
el.$bulkEditTagsMessage.html(
[914] Fix | Delete
msg.replace( '%d', formsValue.length )
[915] Fix | Delete
);
[916] Fix | Delete
},
[917] Fix | Delete
[918] Fix | Delete
/**
[919] Fix | Delete
* Remove form from the Bulk Edit Tags form.
[920] Fix | Delete
*
[921] Fix | Delete
* @since 1.7.5
[922] Fix | Delete
*
[923] Fix | Delete
* @param {object} event Event object.
[924] Fix | Delete
*/
[925] Fix | Delete
bulkEditTagsFormRemoveItem: function( event ) {
[926] Fix | Delete
[927] Fix | Delete
var formsValue = $( event.target ).data( 'choicesjs' ).getValue( true );
[928] Fix | Delete
[929] Fix | Delete
if ( formsValue.length === 0 ) {
[930] Fix | Delete
app.cancelBulkEditTagsClick();
[931] Fix | Delete
}
[932] Fix | Delete
[933] Fix | Delete
app.updateBulkEditTagsFormMessage( formsValue );
[934] Fix | Delete
},
[935] Fix | Delete
[936] Fix | Delete
/**
[937] Fix | Delete
* Remove tag from Tags editor event handler.
[938] Fix | Delete
*
[939] Fix | Delete
* @since 1.7.5
[940] Fix | Delete
*
[941] Fix | Delete
* @param {object} event Event object.
[942] Fix | Delete
*/
[943] Fix | Delete
editTagsRemoveItem: function( event ) {
[944] Fix | Delete
[945] Fix | Delete
var allValues = _.map( wpforms_admin_forms_overview.all_tags_choices, 'value' );
[946] Fix | Delete
[947] Fix | Delete
if ( allValues.indexOf( event.detail.value ) >= 0 ) {
[948] Fix | Delete
return;
[949] Fix | Delete
}
[950] Fix | Delete
[951] Fix | Delete
// We should remove new tag from the list of choices.
[952] Fix | Delete
var choicesObj = $( event.target ).data( 'choicesjs' ),
[953] Fix | Delete
currentValue = choicesObj.getValue( true ),
[954] Fix | Delete
choices = _.filter( choicesObj._currentState.choices, function( item ) {
[955] Fix | Delete
return item.value !== event.detail.value;
[956] Fix | Delete
} );
[957] Fix | Delete
[958] Fix | Delete
choicesObj
[959] Fix | Delete
.clearStore()
[960] Fix | Delete
.setChoices(
[961] Fix | Delete
choices,
[962] Fix | Delete
'value',
[963] Fix | Delete
'label',
[964] Fix | Delete
true
[965] Fix | Delete
)
[966] Fix | Delete
.setChoiceByValue( currentValue );
[967] Fix | Delete
},
[968] Fix | Delete
[969] Fix | Delete
/**
[970] Fix | Delete
* Calculate and set the bulk edit tags form attributes and styles.
[971] Fix | Delete
*
[972] Fix | Delete
* @since 1.7.5
[973] Fix | Delete
*/
[974] Fix | Delete
adjustBulkEditTagsForm() {
[975] Fix | Delete
const $table = $( '.wp-list-table' ),
[976] Fix | Delete
$columns = $table.find( 'thead .manage-column' ).not( '.hidden' ),
[977] Fix | Delete
$formCells = $( '.wpforms-bulk-edit-tags td' );
[978] Fix | Delete
[979] Fix | Delete
// Update colspan attributes.
[980] Fix | Delete
$formCells.attr( 'colspan', $columns.length );
[981] Fix | Delete
[982] Fix | Delete
let nameWidth = $table.find( '.column-name' ).outerWidth();
[983] Fix | Delete
nameWidth = nameWidth < 300 ? 300 : nameWidth;
[984] Fix | Delete
[985] Fix | Delete
const cellsWidth = $table.outerWidth() - nameWidth -
[986] Fix | Delete
$table.find( '.check-column' ).outerWidth() - 10;
[987] Fix | Delete
[988] Fix | Delete
const formsInputWidth = `calc( 100% - ${ cellsWidth }px )`;
[989] Fix | Delete
[990] Fix | Delete
// Update width property of the forms input element.
[991] Fix | Delete
el.$bulkEditTagsForms.closest( '.wpforms-edit-forms' ).css( 'width', formsInputWidth );
[992] Fix | Delete
},
[993] Fix | Delete
[994] Fix | Delete
/**
[995] Fix | Delete
* Click toggle Tags column checkbox event handler.
[996] Fix | Delete
*
[997] Fix | Delete
* @since 1.7.5
[998] Fix | Delete
*/
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function