/
home
/
techb158
/
balacoffee.com
/
wp-content
/
plugins
/
polylang-pro-1
/
js
/
build
/
/home/techb158/balacoffee.com/wp-content/plugins/polylang-pro-1/js/build
mkdir
upload
Name
Size
Mode
Actions
acf.js
1354
0644
edit
dl
rm
acf.min.js
600
0644
edit
dl
rm
admin.js
14301
0644
edit
dl
rm
admin.min.js
4292
0644
edit
dl
rm
block-editor-plugin.js
33407
0644
edit
dl
rm
block-editor-plugin.min.js
5553
0644
edit
dl
rm
block-editor.js
11447
0644
edit
dl
rm
block-editor.min.js
3694
0644
edit
dl
rm
blocks.js
54766
0644
edit
dl
rm
blocks.min.js
12823
0644
edit
dl
rm
bulk-translate.js
2532
0644
edit
dl
rm
bulk-translate.min.js
1322
0644
edit
dl
rm
classic-editor.js
15628
0644
edit
dl
rm
classic-editor.min.js
5225
0644
edit
dl
rm
confirmation-modal.js
4284
0644
edit
dl
rm
confirmation-modal.min.js
1493
0644
edit
dl
rm
languages-step.js
10783
0644
edit
dl
rm
languages-step.min.js
3499
0644
edit
dl
rm
metabox-autocomplete.js
2309
0644
edit
dl
rm
metabox-autocomplete.min.js
897
0644
edit
dl
rm
metabox-button.js
1306
0644
edit
dl
rm
metabox-button.min.js
709
0644
edit
dl
rm
nav-menu.js
3978
0644
edit
dl
rm
nav-menu.min.js
1583
0644
edit
dl
rm
navigation-editor-plugin.js
19194
0644
edit
dl
rm
navigation-editor-plugin.min.js
1666
0644
edit
dl
rm
post.js
5602
0644
edit
dl
rm
post.min.js
2082
0644
edit
dl
rm
sidebar.js
118170
0644
edit
dl
rm
sidebar.min.js
38956
0644
edit
dl
rm
term.js
8046
0644
edit
dl
rm
term.min.js
3049
0644
edit
dl
rm
user.js
1222
0644
edit
dl
rm
user.min.js
452
0644
edit
dl
rm
widget-editor-plugin.js
18433
0644
edit
dl
rm
widget-editor-plugin.min.js
1050
0644
edit
dl
rm
widgets.js
4336
0644
edit
dl
rm
widgets.min.js
1659
0644
edit
dl
rm
Edit:
/home/techb158/balacoffee.com/wp-content/plugins/polylang-pro-1/js/build/bulk-translate.js
(2532B)
var __webpack_exports__ = {}; /** * Bulk translate * * @package Polylang-Pro */ jQuery( function( $ ) { var t = this; $( '.editinline' ).on( 'click', function(){ $( '#pll-translate' ).find( '.cancel' ).trigger( 'click' ); // Close the form on quick edit } ); $( '#doaction, #doaction2' ).on( 'click', function( e ){ t.whichBulkButtonId = $( this ).attr( 'id' ); var n = t.whichBulkButtonId.substr( 2 ); if ( 'pll_translate' === $( 'select[name="' + n + '"]' ).val() ) { e.preventDefault(); if ( typeof inlineEditPost !== 'undefined' ) { // Not available for media. inlineEditPost.revert(); // Close Bulk edit and Quick edit if open. } $( '#pll-translate td' ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length ); // The hidden tr allows to keep the background color. // HTML prepended is hardcoded. So prepend is safe and as no need to be escaped. $( 'table.widefat tbody' ).prepend( $( '#pll-translate' ) ).prepend( '<tr class="hidden"></tr>' ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.prepend } else { $( '#pll-translate' ).find( '.cancel' ).trigger( 'click' ); } } ); // Cancel $( '#pll-translate' ).on( 'click', '.cancel', function(){ // Close the form on any other bulk action $( '#pll-translate' ).siblings( '.hidden' ).remove(); // #pll-translate is built and come from server side and is well escaped when necessary $( '#pll-bulk-translate' ).append( $( '#pll-translate' ) ); //phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.append // Move focus back to the Bulk Action button that was activated. $( '#' + t.whichBulkButtonId ).trigger( 'focus' ); } ); // Act when pressing enter or esc $( '#pll-translate' ).on( 'keydown', function( event ){ if ( 'Enter' === event.key && ! $( event.target ).hasClass( 'cancel' ) ) { event.preventDefault(); $( this ).find( 'input[type=submit]' ).trigger( 'click' ); } if ( 'Escape' === event.key ) { event.preventDefault(); $( this ).find( '.cancel' ).trigger( 'click' ); } } ); // Clean DOM in case of file download $( '#posts-filter' ).on( 'submit', function() { $( '.settings-error' ).remove(); setTimeout( function() { $( 'input[type=checkbox]:checked' ).attr( 'checked', false ); $( '#pll-translate' ).find( '.cancel' ).trigger( 'click' ); }, 500 ); } ); } );
Save
cmd:
run