Index: trunk/extensions/SemanticForms/libs/SF_popupform.js |
— | — | @@ -16,25 +16,7 @@ |
17 | 17 | }); |
18 | 18 | |
19 | 19 | // register formlink with button |
20 | | - jQuery( 'form.popupformlink[method!="post"] input' ).each(function() { |
21 | | - |
22 | | - var input = jQuery(this); |
23 | | - |
24 | | - // Yay, IE 4 lines, FF 0 lines |
25 | | - var target = String (this.getAttribute("onclick")); |
26 | | - var start = target.indexOf("window.location.href='") + 22; |
27 | | - var stop = target.indexOf("'", start); |
28 | | - target = target.substring( start, stop ); |
29 | | - |
30 | | - input.data( "target", target ) // extract link target from event handler |
31 | | - .attr( "onclick", null ) // and remove event handler |
32 | | - .click( function( evt ){ |
33 | | - return ext.popupform.handlePopupFormLink( jQuery( this ).data( "target" ), this); |
34 | | - }); |
35 | | - }) |
36 | | - |
37 | | - // register formlink with post button |
38 | | - jQuery( 'form.popupformlink[method="post"]' ).submit(function(evt){ |
| 20 | + jQuery( 'form.popupformlink' ).submit(function(evt){ |
39 | 21 | return ext.popupform.handlePopupFormLink( this.getAttribute( 'action' ), this ); |
40 | 22 | }); |
41 | 23 | |
— | — | @@ -460,7 +442,7 @@ |
461 | 443 | // Send the form data off, we do not care for the returned data |
462 | 444 | var innerformdata = innerform.serialize(); |
463 | 445 | jQuery.post( innerform.attr("action"), innerformdata ); |
464 | | - |
| 446 | + |
465 | 447 | // build new url for outer page (we have to ask for a purge) |
466 | 448 | |
467 | 449 | var url = location.href; |