/
home
/
techb158
/
primomovers.ca
/
wp-content
/
plugins
/
polylang-pro
/
js
/
build
/
/home/techb158/primomovers.ca/wp-content/plugins/polylang-pro/js/build
mkdir
upload
Name
Size
Mode
Actions
acf.js
1357
0644
edit
dl
rm
acf.min.js
600
0644
edit
dl
rm
admin.js
14678
0644
edit
dl
rm
admin.min.js
4346
0644
edit
dl
rm
block-editor-plugin.js
30834
0644
edit
dl
rm
block-editor-plugin.min.js
4325
0644
edit
dl
rm
block-editor.js
13046
0644
edit
dl
rm
block-editor.min.js
4212
0644
edit
dl
rm
blocks.js
49834
0644
edit
dl
rm
blocks.min.js
10830
0644
edit
dl
rm
bulk-translate.js
2543
0644
edit
dl
rm
bulk-translate.min.js
1322
0644
edit
dl
rm
classic-editor.js
15652
0644
edit
dl
rm
classic-editor.min.js
5227
0644
edit
dl
rm
confirmation-modal.js
4290
0644
edit
dl
rm
confirmation-modal.min.js
1494
0644
edit
dl
rm
filter-path-middleware.js
800
0644
edit
dl
rm
filter-path-middleware.min.js
216
0644
edit
dl
rm
languages-step.js
10794
0644
edit
dl
rm
languages-step.min.js
3499
0644
edit
dl
rm
machine-translation-settings.js
7408
0644
edit
dl
rm
machine-translation-settings.min.js
3721
0644
edit
dl
rm
metabox-autocomplete.js
2309
0644
edit
dl
rm
metabox-autocomplete.min.js
897
0644
edit
dl
rm
metabox-button.js
1312
0644
edit
dl
rm
metabox-button.min.js
709
0644
edit
dl
rm
nav-menu.js
3986
0644
edit
dl
rm
nav-menu.min.js
1583
0644
edit
dl
rm
post.js
5716
0644
edit
dl
rm
post.min.js
2138
0644
edit
dl
rm
sidebar.js
130959
0644
edit
dl
rm
sidebar.min.js
41675
0644
edit
dl
rm
term.js
8160
0644
edit
dl
rm
term.min.js
3116
0644
edit
dl
rm
user.js
1225
0644
edit
dl
rm
user.min.js
452
0644
edit
dl
rm
widget-editor-plugin.js
21577
0644
edit
dl
rm
widget-editor-plugin.min.js
2640
0644
edit
dl
rm
widgets.js
4343
0644
edit
dl
rm
widgets.min.js
1659
0644
edit
dl
rm
Edit:
/home/techb158/primomovers.ca/wp-content/plugins/polylang-pro/js/build/confirmation-modal.js
(4290B)
/******/ "use strict"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; /* unused harmony exports initializeConfirmationModal, initializeLanguageOldValue */ /** * @package Polylang */ const languagesList = jQuery( '.post_lang_choice' ); // Dialog box for alerting the user about a risky changing. const initializeConfirmationModal = () => { // We can't use underscore or lodash in this common code because it depends of the context classic or block editor. // Classic editor underscore is loaded, Block editor lodash is loaded. const { __ } = wp.i18n; // Create dialog container. const dialogContainer = jQuery( '<div/>', { id: 'pll-dialog', style: 'display:none;' } ).text( __( 'Are you sure you want to change the language of the current content?', 'polylang' ) ); // Put it after languages list dropdown. // PHPCS ignore dialogContainer is a new safe HTML code generated above. languagesList.after( dialogContainer ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.after const dialogResult = new Promise( ( confirm, cancel ) => { const confirmDialog = ( what ) => { // phpcs:ignore PEAR.Functions.FunctionCallSignature.Indent switch ( what ) { // phpcs:ignore PEAR.Functions.FunctionCallSignature.Indent case 'yes': // Confirm the new language. languagesList.data( 'old-value', languagesList.children( ':selected' ).first().val() ); confirm(); break; case 'no': // Revert to the old language. languagesList.val( languagesList.data( 'old-value' ) ); cancel( 'Cancel' ); break; } dialogContainer.dialog( 'close' ); // phpcs:ignore PEAR.Functions.FunctionCallSignature.Indent } // phpcs:ignore PEAR.Functions.FunctionCallSignature.Indent // Initialize dialog box in the case a language is selected but not added in the list. const dialogOptions = { autoOpen: false, modal: true, draggable: false, resizable: false, title: __( 'Change language', 'polylang' ), minWidth: 600, maxWidth: '100%', open: function ( event, ui ) { // Change dialog box position for rtl language if ( jQuery( 'body' ).hasClass( 'rtl' ) ) { jQuery( this ).parent().css( { right: jQuery( this ).parent().css( 'left' ), left: 'auto' } ); } }, close: function ( event, ui ) { // When we're closing the dialog box we need to cancel the language change as we click on Cancel button. confirmDialog( 'no' ); }, buttons: [ { text: __( 'OK', 'polylang' ), click: function ( event ) { confirmDialog( 'yes' ); } }, { text: __( 'Cancel', 'polylang' ), click: function ( event ) { confirmDialog( 'no' ); } } ] }; if ( jQuery.ui.version >= '1.12.0' ) { Object.assign( dialogOptions, { classes: { 'ui-dialog': 'pll-confirmation-modal' } } ); } else { Object.assign( dialogOptions, { dialogClass: 'pll-confirmation-modal' } ); // jQuery UI 1.11.4 - WP < 5.6 } dialogContainer.dialog( dialogOptions ); } ); return { dialogContainer, dialogResult }; } const initializeLanguageOldValue = () => { // Keep the old language value to be able to compare to the new one and revert to it if necessary. languagesList.attr( 'data-old-value', languagesList.children( ':selected' ).first().val() ); };
Save
cmd:
run