Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -567,11 +567,7 @@ |
568 | 568 | break; |
569 | 569 | default : |
570 | 570 | $formcontent .= |
571 | | - Xml::tags( 'input', array( |
572 | | - 'type' => 'hidden', |
573 | | - 'name' => $key, |
574 | | - 'value' => urldecode( $value ) |
575 | | - ), '' ); |
| 571 | + Xml::input( $key, false, urldecode( $value ) , array( 'type' => 'hidden') ); |
576 | 572 | } |
577 | 573 | } |
578 | 574 | |
Index: trunk/extensions/SemanticForms/libs/SF_submit.js |
— | — | @@ -95,6 +95,11 @@ |
96 | 96 | .addClass("sf-save_and_continue-error") |
97 | 97 | .removeClass("sf-save_and_continue-wait"); |
98 | 98 | |
| 99 | + // Remove all old error messages and set new one |
| 100 | + jQuery(".errorMessage").remove(); |
| 101 | + jQuery("#contentSub").append('<div id="form_error_header" class="warningMessage" style="font-size: medium">' + ajaxHeader.responseText + '</div>'); |
| 102 | + scroll(0, 0); |
| 103 | + |
99 | 104 | } |
100 | 105 | |
101 | 106 | } ); |