Index: trunk/extensions/ApiSandbox/ext.apiSandbox.js |
— | — | @@ -516,10 +516,6 @@ |
517 | 517 | .appendTo( '#api-sandbox-parameters' ) |
518 | 518 | .add( $submit ) |
519 | 519 | .click( function ( e ) { |
520 | | - // Don't do default action (crawl up to <form> and trigger a submit). |
521 | | - // That would submit it twice (bug 34790) |
522 | | - e.preventDefault(); |
523 | | - |
524 | 520 | $form.submit(); |
525 | 521 | } ) |
526 | 522 | .button({ disabled: true }); |
— | — | @@ -606,9 +602,6 @@ |
607 | 603 | $form.submit( function ( e ) { |
608 | 604 | var url, params, mustBePosted; |
609 | 605 | |
610 | | - // Prevent browser from submitting the form |
611 | | - // and reloading the page to the action-url. |
612 | | - // We're doing it with AJAX instead, below. |
613 | 606 | e.preventDefault(); |
614 | 607 | |
615 | 608 | if ( $submit.button( 'option', 'disabled' ) === true ) { |
— | — | @@ -630,7 +623,6 @@ |
631 | 624 | } |
632 | 625 | |
633 | 626 | showLoading( $output ); |
634 | | - |
635 | 627 | if ( mustBePosted ) { |
636 | 628 | $requestUrl.val( url ); |
637 | 629 | if ( params.length > 0 ) { |
Property changes on: trunk/extensions/ApiSandbox/ext.apiSandbox.js |
___________________________________________________________________ |
Added: svn:eol-style |
638 | 630 | + native |
Property changes on: trunk/extensions/ApiSandbox/ext.apiSandbox.css |
___________________________________________________________________ |
Added: svn:eol-style |
639 | 631 | + native |