r85563 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85562‎ | r85563 | r85564 >
Date:19:17, 6 April 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
display message when save and continue failed; removed closing tag for inputs for autoedit
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php (modified) (history)
  • /trunk/extensions/SemanticForms/libs/SF_submit.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
@@ -567,11 +567,7 @@
568568 break;
569569 default :
570570 $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') );
576572 }
577573 }
578574
Index: trunk/extensions/SemanticForms/libs/SF_submit.js
@@ -95,6 +95,11 @@
9696 .addClass("sf-save_and_continue-error")
9797 .removeClass("sf-save_and_continue-wait");
9898
 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+
99104 }
100105
101106 } );