WordPress.org

Plugin Directory

Changeset 622334


Ignore:
Timestamp:
11/07/12 23:21:50 (18 months ago)
Author:
mdawaffe
Message:

Comments: Fix Firefox double submit confirmation when posting a comment.

When posting a comment in Firefox, the browser would scarily warn you that it has to resubmit content.

Fix by telling using the Firefox-only "forceget" window.location.reload() parameter: https://developer.mozilla.org/en-US/docs/DOM/window.location#Methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/comments/comments.php

    r613272 r622334  
    465465try { 
    466466    window.parent.location = <?php echo json_encode( $url ); ?>; 
    467     window.parent.location.reload(); 
     467    window.parent.location.reload( true ); 
    468468} catch ( e ) { 
    469469    window.location = <?php echo json_encode( $url ); ?>; 
    470     window.location.reload(); 
     470    window.location.reload( true ); 
    471471} 
    472472ellipsis = document.getElementById( 'ellipsis' ); 
Note: See TracChangeset for help on using the changeset viewer.