Index: trunk/extensions/FlaggedRevs/presentation/RevisionReviewFormUI.php |
— | — | @@ -211,7 +211,7 @@ |
212 | 212 | # Add "cancel" link |
213 | 213 | $form .= Linker::link( $article->getTitle(), |
214 | 214 | wfMsg( 'revreview-cancel' ), |
215 | | - array( 'onClick' => 'history.back(); return !history.length;' ) ); |
| 215 | + array( 'onClick' => 'history.back(); return history.length <= 1;' ) ); |
216 | 216 | |
217 | 217 | # Show stability log if there is anything interesting... |
218 | 218 | if ( $article->isPageLocked() ) { |
Index: trunk/extensions/FlaggedRevs/presentation/RejectConfirmationFormUI.php |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | $form .= Html::input( 'wpSubmit', wfMsg( 'revreview-reject-confirm' ), 'submit' ); |
149 | 149 | $form .= ' '; |
150 | 150 | $form .= $skin->link( $this->form->getPage(), wfMsg( 'revreview-reject-cancel' ), |
151 | | - array( 'onClick' => 'history.back(); return !history.length;' ), |
| 151 | + array( 'onClick' => 'history.back(); return history.length <= 1;' ), |
152 | 152 | array( 'oldid' => $this->form->getRefId(), 'diff' => $this->form->getOldId() ) ); |
153 | 153 | $form .= Xml::closeElement( 'form' ); |
154 | 154 | |