PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 6.2.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v6.2.1
6.2.2 6.2.1 6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 All 155 releases
← All changes | assets/js/mainwp.js +18 -0 6.1.8 → 6.2.1 View file →
@@ -2410,8 +2410,21 @@
2410 2410 jQuery(document).on('click', '#mainwp_managesites_edit_test', function () {
2411 2411 mainwp_managesites_edit_test();
2412 2412 });
2413 2413
2414 + // Use detected URL (Edit Site Page): set the protocol and www selectors to the child-reported address; no autosave.
2415 + jQuery(document).on('click', '#mainwp_managesites_edit_use_detected', function () {
2416 + let scheme = jQuery(this).attr('data-scheme');
2417 + let with_www = jQuery(this).attr('data-www');
2418 + if (scheme === 'http' || scheme === 'https') {
2419 + jQuery('#mainwp_managesites_edit_siteurl_protocol').dropdown('set selected', scheme);
2420 + }
2421 + if (with_www === 'www' || with_www === 'none-www') {
2422 + jQuery('#mainwp-edit-site-edit-url-www').dropdown('set selected', with_www);
2423 + }
2424 + return false;
2425 + });
2426 +
2414 2427 // Handle submit add multi website
2415 2428 jQuery(document).on('click', '#mainwp_managesites_add_multi_site', function () {
2416 2429 let error_messages = [];
2417 2430 let has_table_data = false;
@@ -4233,13 +4246,18 @@
4233 4246
4234 4247 // Hide after installtion notices (PHP version, Trust MainWP Child, Multisite Warning and OpenSSL warning)
4235 4248 jQuery(document).on('click', '.mainwp-notice-dismiss', function () {
4236 4249 let notice_id = jQuery(this).attr('notice-id');
4250 + let shortterm = jQuery(this).attr('shortterm-notice');
4251 +
4237 4252 jQuery(this).closest('.ui.message').fadeOut("slow");
4238 4253 let data = {
4239 4254 action: 'mainwp_notice_status_update'
4240 4255 };
4241 4256 data['notice_id'] = notice_id;
4257 + if(shortterm === '1'){
4258 + data['short_term'] = 1;
4259 + }
4242 4260 jQuery.post(ajaxurl, mainwp_secure_data(data), function () { });
4243 4261 return false;
4244 4262 });
4245 4263