/
home
/
vianto5
/
cititower.mx
/
wp-content
/
plugins
/
sitepress-multilingual-cms
/
res
/
js
/
/home/vianto5/cititower.mx/wp-content/plugins/sitepress-multilingual-cms/res/js
mkdir
upload
Name
Size
Mode
Actions
cookies/
-
0755
rm
display-as-translated/
-
0755
rm
languages/
-
0755
rm
mcs/
-
0755
rm
media/
-
0755
rm
requirements/
-
0755
rm
settings/
-
0755
rm
shared/
-
0755
rm
taxonomy-translation/
-
0755
rm
tm-dashboard/
-
0755
rm
tooltip/
-
0755
rm
tp-polling/
-
0755
rm
translation-editor/
-
0755
rm
translation-feedback/
-
0755
rm
affiliate-info.js
824
0644
edit
dl
rm
ate-dashboard.php
1693
0644
edit
dl
rm
ate-jobs-migration.js
628
0644
edit
dl
rm
ate-widget.php
1476
0644
edit
dl
rm
clear-preferred-ts.js
1430
0644
edit
dl
rm
content-translation.js
5182
0644
edit
dl
rm
dismiss-taxonomy-help-notice.js
564
0644
edit
dl
rm
fix-tables-collation.js
734
0644
edit
dl
rm
fix-tp-id.js
733
0644
edit
dl
rm
icl-admin-notifier.js
1935
0644
edit
dl
rm
iframeResizer.min.js
5571
0644
edit
dl
rm
jquery.cookie.js
2817
0644
edit
dl
rm
language-switchers-settings.js
30350
0644
edit
dl
rm
language-switchers-settings.min.js
14669
0644
edit
dl
rm
languages.js
22699
0644
edit
dl
rm
menus-sync.js
5881
0644
edit
dl
rm
orphan-comments.js
2627
0644
edit
dl
rm
otgs-notices.js
3629
0644
edit
dl
rm
overview.js
270
0644
edit
dl
rm
post-edit-alert.js
1448
0644
edit
dl
rm
post-edit-languages.js
2390
0644
edit
dl
rm
post-edit-terms.js
5390
0644
edit
dl
rm
post-edit.js
13622
0644
edit
dl
rm
post-list-quickedit.js
1515
0644
edit
dl
rm
refresh-services.js
584
0644
edit
dl
rm
reset-preferred-ts.js
1340
0644
edit
dl
rm
reset-pro-trans-config.js
2560
0644
edit
dl
rm
scripts-tm.js
8394
0644
edit
dl
rm
scripts.js
19353
0644
edit
dl
rm
set-translation-role.js
2047
0644
edit
dl
rm
sitepress.js
306
0644
edit
dl
rm
support-tm-logs.js
4755
0644
edit
dl
rm
tags.js
7300
0644
edit
dl
rm
taxonomy-hierarchy-sync-message.js
724
0644
edit
dl
rm
templates-compiled.js
36708
0644
edit
dl
rm
theme-localization.js
2165
0644
edit
dl
rm
theme-plugin-localization.js
1979
0644
edit
dl
rm
translation-options.js
260
0644
edit
dl
rm
translation-proxy.js
368
0644
edit
dl
rm
translation-roles-select2.js
1648
0644
edit
dl
rm
translation-services.js
11049
0644
edit
dl
rm
translation-synchronization.js
260
0644
edit
dl
rm
troubleshooting.js
8140
0644
edit
dl
rm
unlisted-translation-service.js
6276
0644
edit
dl
rm
widgets.js
663
0644
edit
dl
rm
widgets.min.js
396
0644
edit
dl
rm
wizard.js
4422
0644
edit
dl
rm
wp-nav-menus.js
1598
0644
edit
dl
rm
wpml-color-picker.js
1021
0644
edit
dl
rm
wpml-language-per-domain-sso.js
375
0644
edit
dl
rm
wpml-progressbar.js
1811
0644
edit
dl
rm
wpml-proxy-interceptor.js
8272
0644
edit
dl
rm
wpml-simple-language-selector.js
1337
0644
edit
dl
rm
wpml-simple-language-selector.min.js
959
0644
edit
dl
rm
wpml-tp-api.js
1223
0644
edit
dl
rm
wpml-user-language.js
885
0644
edit
dl
rm
xdomain-data.js
3373
0644
edit
dl
rm
Edit:
/home/vianto5/cititower.mx/wp-content/plugins/sitepress-multilingual-cms/res/js/post-edit-terms.js
(5390B)
/*globals jQuery, WPML_core, ajaxurl, icl_post_edit_messages */ (function () { 'use strict'; /** @namespace icl_post_edit_messages.switch_language_title */ /** @namespace icl_post_edit_messages.switch_language_alert */ /** @namespace icl_post_edit_messages.connection_loss_alert */ /** @namespace icl_post_edit_messages.switch_language_message */ /** @namespace icl_post_edit_messages.switch_language_confirm */ /** @namespace icl_post_edit_messages._nonce */ jQuery(function () { var language_selector; /* Check if we have a language switcher present. */ language_selector = jQuery('select[name="icl_post_language"]'); if (jQuery('[name="_wpml_root_page"]').length !== 0) { jQuery('#edit-slug-box').hide(); } if (language_selector.length !== 0) { language_selector.on('change', iclPostLanguageAskConfirmation); iclSwitchPostLanguage(); } else { // just add a hidden field with the information and the same id as the language switcher to the dom jQuery.ajax({ type: "POST", url: ajaxurl, dataType: 'json', data: { action: 'wpml_get_default_lang', _icl_nonce: icl_post_edit_messages._get_default_lang_nonce, }, success: function (response) { var hidden_language_field = jQuery('<input id="icl_post_language" type="hidden"/>'); hidden_language_field.val(response.data); jQuery(".wrap").append(hidden_language_field); iclSwitchPostLanguage(); } }); } }); function iclGetSwitchLanguageConfirmation() { var lang_switch_confirm_html; var defer = jQuery.Deferred(); lang_switch_confirm_html = '<div id="icl_confirm_lang_switch">'; lang_switch_confirm_html += '<h2>{switch_language_title}</h2>'; lang_switch_confirm_html += '<p>{switch_language_message}</p>'; lang_switch_confirm_html += '<p>{switch_language_confirm}</p>'; lang_switch_confirm_html += '</div>'; // make sure the title is html entities encoded. var post_name = WPML_core.htmlentities(jQuery('#title').val()); if (post_name.length == 0) { post_name = icl_post_edit_messages.empty_post_title; } lang_switch_confirm_html = lang_switch_confirm_html.replace('{switch_language_title}', icl_post_edit_messages.switch_language_title); lang_switch_confirm_html = lang_switch_confirm_html.replace('{switch_language_message}', icl_post_edit_messages.switch_language_message); lang_switch_confirm_html = lang_switch_confirm_html.replace('{switch_language_confirm}', icl_post_edit_messages.switch_language_confirm); lang_switch_confirm_html = lang_switch_confirm_html.replace('{post_name}', '<i>' + post_name + '</i>'); jQuery(lang_switch_confirm_html).dialog({ modal: true, width: 'auto', buttons: [ { text : icl_post_edit_messages.ok_button_label, id : "ok", click: function () { defer.resolve(); jQuery(this).dialog("close"); } }, { text : icl_post_edit_messages.cancel_button_label, id : "cancel", click: function () { defer.reject(); jQuery(this).dialog("close"); } } ] }); return defer.promise(); } function iclPostLanguageAskConfirmation() { var post_language_switcher = jQuery('#icl_post_language'); var previous_post_language = post_language_switcher.data('last_lang'); jQuery('#edit-slug-buttons').find('> .cancel').click(); iclGetSwitchLanguageConfirmation().done(function () { iclSwitchPostLanguage(); }).fail(function () { post_language_switcher.val(previous_post_language); }); } function iclSwitchPostLanguage() { var post_language_switcher = jQuery('#icl_post_language'); var parent = post_language_switcher.parent(); var nonce = parent.find('[name="nonce"]').val(); var new_post_language = post_language_switcher.val(); var previous_post_language = post_language_switcher.data('last_lang'); var post_id = jQuery('#post_ID').val(); if (!previous_post_language) { post_language_switcher.data('last_lang', new_post_language); } else { jQuery.ajax({ type: "POST", url: ajaxurl, dataType: 'json', data: { wpml_from: previous_post_language, action: 'wpml_switch_post_language', nonce: nonce, /** @todo: remove the following line as most likely obsolete */ _icl_nonce: icl_post_edit_messages._nonce, wpml_to: new_post_language, wpml_post_id: post_id }, success: function () { post_language_switcher.data('last_lang', new_post_language); var url = WPML_core.sanitize(jQuery(location).attr('href')); if (/lang=/.test(url)) { url = url.replace(/([\?&])(lang=)[^&#]*/, '$1$2' + new_post_language); } else { var sep = (url.indexOf('?') > -1) ? '&' : '?'; url = url + sep + 'lang=' + new_post_language; } window.location.replace(url); } }); } } })();
Save
cmd:
run