http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97899

Revision: 97899
Author:   aaron
Date:     2011-09-23 08:44:36 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------
FU r97886: fix for JS back button

Modified Paths:
--------------
    trunk/extensions/FlaggedRevs/presentation/RejectConfirmationFormUI.php
    trunk/extensions/FlaggedRevs/presentation/RevisionReviewFormUI.php

Modified: trunk/extensions/FlaggedRevs/presentation/RejectConfirmationFormUI.php
===================================================================
--- trunk/extensions/FlaggedRevs/presentation/RejectConfirmationFormUI.php      
2011-09-23 08:17:19 UTC (rev 97898)
+++ trunk/extensions/FlaggedRevs/presentation/RejectConfirmationFormUI.php      
2011-09-23 08:44:36 UTC (rev 97899)
@@ -147,7 +147,7 @@
                $form .= Html::input( 'wpSubmit', wfMsg( 
'revreview-reject-confirm' ), 'submit' );
                $form .= ' ';
                $form .= $skin->link( $this->form->getPage(), wfMsg( 
'revreview-reject-cancel' ),
-                       array( 'onClick' => 'history.back(); return 
!history.length;' ),
+                       array( 'onClick' => 'history.back(); return 
history.length <= 1;' ),
                        array( 'oldid' => $this->form->getRefId(), 'diff' => 
$this->form->getOldId() ) );
                $form .= Xml::closeElement( 'form' );
 

Modified: trunk/extensions/FlaggedRevs/presentation/RevisionReviewFormUI.php
===================================================================
--- trunk/extensions/FlaggedRevs/presentation/RevisionReviewFormUI.php  
2011-09-23 08:17:19 UTC (rev 97898)
+++ trunk/extensions/FlaggedRevs/presentation/RevisionReviewFormUI.php  
2011-09-23 08:44:36 UTC (rev 97899)
@@ -211,7 +211,7 @@
                # Add "cancel" link
                $form .= Linker::link( $article->getTitle(),
                        wfMsg( 'revreview-cancel' ),
-                       array( 'onClick' => 'history.back(); return 
!history.length;' ) );
+                       array( 'onClick' => 'history.back(); return 
history.length <= 1;' ) );
 
                # Show stability log if there is anything interesting...
                if ( $article->isPageLocked() ) {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to