/
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/troubleshooting.js
(8140B)
/*globals jQuery, troubleshooting_data */ /** @namespace troubleshooting_data.nonce.icl_restore_notifications */ /** @namespace troubleshooting_data.nonce.icl_remove_notifications */ jQuery(function () { var remove_notifications_button = jQuery('#icl_remove_notifications'); var restore_notifications_button = jQuery('#icl_restore_notifications'); var restore_notifications_all_users = jQuery('#icl_restore_notifications_all_users'); var sync_posts_taxonomies_button = jQuery('#wpml_sync_posts_taxonomies'); var ls_templates_update_domain_button = jQuery('#wpml_ls_templates_update_domain'); remove_notifications_button.off('click'); remove_notifications_button.on('click', remove_all_notifications); restore_notifications_button.off('click'); restore_notifications_button.on('click', restore_notifications); function remove_all_notifications() { if (typeof(event.preventDefault) !== 'undefined') { event.preventDefault(); } else { event.returnValue = false; } jQuery(this).prop( 'disabled', true ); jQuery(this).after(icl_ajxloaderimg); var ajax_data = { 'action': 'icl_remove_notifications', 'nonce': troubleshooting_strings.removeNotificationsNonce, }; jQuery.ajax({ type: "POST", url: ajaxurl, data: ajax_data, dataType: 'json', success: function (response) { if(response.reload == 1) { location.reload(); } }, error: function (jqXHR, status, error) { var parsed_response = jqXHR.statusText || status || error; alert(parsed_response); }, complete: function (response) { remove_notifications_button.prop('disabled', false); remove_notifications_button.next().fadeOut(); }, }); return false; } function restore_notifications() { if (typeof(event.preventDefault) !== 'undefined') { event.preventDefault(); } else { event.returnValue = false; } jQuery(this).prop( 'disabled', true ); jQuery(this).after(icl_ajxloaderimg); var all_users = restore_notifications_all_users.is(':checked') ? 1 : 0; var ajax_data = { 'action': 'icl_restore_notifications', 'nonce': troubleshooting_strings.restoreNotificationsNonce, 'all_users': all_users }; jQuery.ajax({ type: "POST", url: ajaxurl, data: ajax_data, dataType: 'json', success: function (response) { if(response.reload == 1) { location.reload(); } }, error: function (jqXHR, status, error) { var parsed_response = jqXHR.statusText || status || error; alert(parsed_response); }, complete: function() { restore_notifications_button.prop('disabled', false); restore_notifications_button.next().fadeOut(); }, }); return false; } var fix_post_types_and_source_langs_button = jQuery("#icl_fix_post_types"); var updateTermNamesButton = jQuery("#icl-update-term-names"); updateTermNamesButton.click(iclUpdateTermNames); fix_post_types_and_source_langs_button.click( function () { jQuery(this).prop( 'disabled', true ); icl_repair_broken_translations(); jQuery(this).after(icl_ajxloaderimg); } ); function icl_repair_broken_translations (rows_fixed) { var rows_fixed = rows_fixed || 0; var rows_left_msg = jQuery('#icl_fix_post_types_posts_left_msg'); jQuery.ajax( { url: ajaxurl, data: { action: 'icl_repair_broken_type_and_language_assignments', icl_nonce: troubleshooting_strings.brokenTypeNonce, }, success: function (response) { var new_rows_fixed= parseInt(response.data.rowsFixed, 10); var rows_left= parseInt(response.data.rowsLeft, 10); rows_fixed += new_rows_fixed; if (rows_left > 0) { rows_left_msg.css('display', 'inline-block').find('span').text(rows_left); icl_repair_broken_translations(rows_fixed); return; } rows_left_msg.css('display', 'none'); fix_post_types_and_source_langs_button.prop('disabled', false); fix_post_types_and_source_langs_button.next().fadeOut(); var text = ''; if (rows_fixed > 0) { text = troubleshooting_strings.success_1 + rows_fixed + troubleshooting_strings.success_2; } else { text = troubleshooting_strings.no_problems; } var type_term_popup_html = '<div id="icl_fix_languages_and_post_types"><p>' + text + '</p></div>'; jQuery(type_term_popup_html).dialog( { dialogClass: 'wpml-dialog otgs-ui-dialog', width : 'auto', modal : true, buttons : { Ok: function () { jQuery(this).dialog("close"); } } } ); } }); } function iclUpdateTermNames() { var updatedTermNamesTable = jQuery('#icl-updated-term-names-table'); /* First of all we get all selected rows and the displayed Term names. */ var selectedTermRows = updatedTermNamesTable.find('input[type="checkbox"]'); var selectedIDs = {}; jQuery.each(selectedTermRows, function (index, selectedRow) { selectedRow = jQuery(selectedRow); if(selectedRow.is(':checked') && selectedRow.val() && selectedRow.attr('name') && selectedRow.attr('name').trim() !== ''){ selectedIDs[selectedRow.val().toString()] = selectedRow.attr('name'); } }); var selectedIDsJSON = JSON.stringify(selectedIDs); jQuery.ajax( { url: ajaxurl, method: "POST", data: { action: 'wpml_update_term_names_troubleshoot', _icl_nonce: troubleshooting_strings.termNamesNonce, terms: selectedIDsJSON }, success: function (response) { jQuery.each(response.data, function (index, id) { updatedTermNamesTable.find('input[type="checkbox"][value="'+ id +'"]').closest('tr').remove(); }); var remainingRows = jQuery('.icl-term-with-suffix-row'); if (remainingRows.length === 0 ){ updatedTermNamesTable.hide(); jQuery('#icl-update-term-names').hide(); jQuery('#icl-update-term-names-done').show(); } var termSuffixUpdatedHTML = '<div id="icl_fix_term_suffixes"><p>' + troubleshooting_strings.suffixesRemoved + '</p></div>'; jQuery(termSuffixUpdatedHTML).dialog( { dialogClass: 'wpml-dialog otgs-ui-dialog', width : 'auto', modal : true, buttons : { Ok: function () { jQuery(this).dialog("close"); } } } ); } }); } jQuery('#icl_cache_clear').click(function () { var self = jQuery(this); self.prop( 'disabled', true ); self.after(icl_ajxloaderimg); jQuery.post(location.href + '&debug_action=cache_clear&nonce=' + troubleshooting_strings.cacheClearNonce, function () { self.prop('disabled', false); alert( troubleshooting_strings.done ); self.next().fadeOut(); }); }); sync_posts_taxonomies_button.click(function(){ var requestData = {}; sync_posts_taxonomies_button.siblings('.wpml-notice').empty(); sync_posts_taxonomies_button.prop('disabled', true); sync_posts_taxonomies_button.after(icl_ajxloaderimg); requestData.batch_number = 0; requestData.post_type = sync_posts_taxonomies_button.siblings('select[name="wpml_post_type"]').val(); sync_posts_taxonomies_send_ajax(requestData); }); var sync_posts_taxonomies_send_ajax = function(requestData) { requestData.debug_action = 'synchronize_posts_taxonomies'; requestData.nonce = troubleshooting_strings.syncPostsTaxNonce; jQuery.ajax({ type : "POST", url : location.href, data : requestData, success: sync_posts_taxonomies_receive_ajax }); }; var sync_posts_taxonomies_receive_ajax = function(response) { sync_posts_taxonomies_button.siblings('.wpml-notice').html(response.data.message); if ( response.success && ! response.data.completed ) { var requestData = response.data || {}; requestData.debug_action = 'synchronize_posts_taxonomies'; requestData.nonce = troubleshooting_strings.syncPostsTaxNonce; sync_posts_taxonomies_send_ajax(requestData); } else { sync_posts_taxonomies_button.next().fadeOut(); sync_posts_taxonomies_button.prop('disabled', false); } }; });
Save
cmd:
run