Plugin Directory

Changeset 803110


Ignore:
Timestamp:
11/12/2013 02:12:12 PM (12 years ago)
Author:
migueluy
Message:

Jetpack: Publicize: Sync.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/publicize/assets/publicize.js

    r784933 r803110  
    7070
    7171                    $.post( ajaxurl, 'action=publicize_'+ service + '_options_save&connection=' + connection + '&selected_id=' + id + '&token=' + token + '&type=' + type + '&_wpnonce=' + nonce + '&global=' + global_conn + '&global_nonce=' + global_nonce, function( response ) {
     72                        var frameNonce;
    7273                        tb_remove();
    73                         top.location = 'options-general.php?page=sharing';
     74                        frameNonce = document.location.search.match( /frame-nonce=([^&]+)/ );
     75                        if ( /inside-newdash=1/.test( document.location.search ) && frameNonce ) {
     76                            document.location = 'options-general.php?page=sharing&inside-newdash=1&frame-nonce' + frameNonce[1];
     77                        } else {
     78                            top.location = 'options-general.php?page=sharing';
     79                        }
    7480                    } );
    7581
Note: See TracChangeset for help on using the changeset viewer.