r107295 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107294‎ | r107295 | r107296 >
Date:22:19, 25 December 2011
Author:jeroendedauw
Status:deferred
Tags:educationprogram 
Comment:
fix cancel button behaviour - form should not be submitted
Modified paths:
  • /trunk/extensions/EducationProgram/resources/ep.formpage.js (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/resources/ep.formpage.js
@@ -12,8 +12,9 @@
1313
1414 $( '#bodyContent' ).find( '[type="submit"]' ).button();
1515
16 - $( '#cancelEdit' ).click( function() {
 16+ $( '#cancelEdit' ).click( function( event ) {
1717 window.location = $( this ).attr( 'target-url' );
 18+ event.preventDefault();
1819 } );
1920
2021 } );

Status & tagging log