| @@ -59,8 +59,9 @@ | ||
| 59 | 59 | 'public_key' => $fs->get_public_key(), |
| 60 | 60 | 'plugin_version' => $fs->get_plugin_version(), |
| 61 | 61 | 'mode' => 'dashboard', |
| 62 | 62 | 'trial' => fs_request_get_bool( 'trial' ), |
| 63 | + 'is_ms' => ( fs_is_network_admin() && $fs->is_network_active() ), | |
| 63 | 64 | ); |
| 64 | 65 | |
| 65 | 66 | $plan_id = fs_request_get( 'plan_id' ); |
| 66 | 67 | if ( FS_Plugin_Plan::is_valid_id( $plan_id ) ) { |
| @@ -276,9 +277,10 @@ | ||
| 276 | 277 | }); |
| 277 | 278 | |
| 278 | 279 | FS.PostMessage.receiveOnce('pending_activation', function (data) { |
| 279 | 280 | var requestData = { |
| 280 | - user_email: data.user_email | |
| 281 | + user_email : data.user_email, | |
| 282 | + support_email_address: data.support_email_address | |
| 281 | 283 | }; |
| 282 | 284 | |
| 283 | 285 | if (true === data.auto_install) |
| 284 | 286 | requestData.auto_install = true; |
| @@ -283,11 +285,12 @@ | ||
| 283 | 285 | if (true === data.auto_install) |
| 284 | 286 | requestData.auto_install = true; |
| 285 | 287 | |
| 286 | 288 | $.form('<?php echo fs_nonce_url( $fs->_get_admin_page_url( 'account', array( |
| 287 | - 'fs_action' => $fs->get_unique_affix() . '_activate_new', | |
| 288 | - 'plugin_id' => $plugin_id, | |
| 289 | - 'pending_activation' => true, | |
| 289 | + 'fs_action' => $fs->get_unique_affix() . '_activate_new', | |
| 290 | + 'plugin_id' => $plugin_id, | |
| 291 | + 'pending_activation' => true, | |
| 292 | + 'has_upgrade_context' => true, | |
| 290 | 293 | ) ), $fs->get_unique_affix() . '_activate_new' ) ?>', requestData).submit(); |
| 291 | 294 | }); |
| 292 | 295 | |
| 293 | 296 | FS.PostMessage.receiveOnce('get_context', function () { |