Index: trunk/extensions/SemanticForms/libs/SF_submit.js |
— | — | @@ -59,9 +59,8 @@ |
60 | 60 | |
61 | 61 | sajax_request_type = 'POST'; |
62 | 62 | var form = $('#sfForm'); |
63 | | - var formdata = collectData( form ); |
64 | 63 | |
65 | | - sajax_do_call( 'SFAutoeditAPI::handleAutoEdit', new Array(formdata, false), function( ajaxHeader ){ |
| 64 | + sajax_do_call( 'SFAutoeditAPI::handleAutoEdit', new Array(collectData( form ), false), function( ajaxHeader ){ |
66 | 65 | |
67 | 66 | if ( ajaxHeader.status == 200 ) { |
68 | 67 | |
— | — | @@ -111,8 +110,6 @@ |
112 | 111 | |
113 | 112 | function collectData( form ) { |
114 | 113 | |
115 | | - var params = form.serialize(); |
116 | | - |
117 | 114 | var summaryfield = jQuery("#wpSummary", form); |
118 | 115 | if ( summaryfield.length > 0 ) { |
119 | 116 | |