X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/src/form/action/Submit.js?ds=sidebyside diff --git a/src/form/action/Submit.js b/src/form/action/Submit.js index 3111fdb5..5a0d0ee1 100644 --- a/src/form/action/Submit.js +++ b/src/form/action/Submit.js @@ -1,3 +1,17 @@ +/* + +This file is part of Ext JS 4 + +Copyright (c) 2011 Sencha Inc + +Contact: http://www.sencha.com/contact + +GNU General Public License Usage +This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. + +If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. + +*/ /** * @class Ext.form.action.Submit * @extends Ext.form.action.Action @@ -27,7 +41,7 @@ *

Other data may be placed into the response for processing by the {@link Ext.form.Basic}'s callback * or event handler methods. The object decoded from this JSON is available in the * {@link Ext.form.action.Action#result result} property.

- *

Alternatively, if an {@link #errorReader} is specified as an {@link Ext.data.reader.Xml XmlReader}:


+ * 

Alternatively, if an {@link Ext.form.Basic#errorReader errorReader} is specified as an {@link Ext.data.reader.Xml XmlReader}:


     errorReader: new Ext.data.reader.Xml({
             record : 'field',
             success: '@success'
@@ -52,7 +66,8 @@
 </message>
 
*

Other elements may be placed into the response XML for processing by the {@link Ext.form.Basic}'s callback - * or event handler methods. The XML document is available in the {@link #errorReader}'s {@link Ext.data.reader.Xml#xmlData xmlData} property.

+ * or event handler methods. The XML document is available in the {@link Ext.form.Basic#errorReader errorReader}'s + * {@link Ext.data.reader.Xml#xmlData xmlData} property.

*/ Ext.define('Ext.form.action.Submit', { extend:'Ext.form.action.Action', @@ -62,7 +77,7 @@ Ext.define('Ext.form.action.Submit', { type: 'submit', /** - * @cfg {boolean} clientValidation Determines whether a Form's fields are validated + * @cfg {Boolean} clientValidation Determines whether a Form's fields are validated * in a final call to {@link Ext.form.Basic#isValid isValid} prior to submission. * Pass false in the Form's submit options to prevent this. Defaults to true. */ @@ -145,7 +160,7 @@ Ext.define('Ext.form.action.Submit', { tag: 'input', type: 'hidden', name: name, - value: val + value: Ext.String.htmlEncode(val) }); } @@ -175,7 +190,7 @@ Ext.define('Ext.form.action.Submit', { } // Create the form - formEl = Ext.core.DomHelper.append(Ext.getBody(), formSpec); + formEl = Ext.DomHelper.append(Ext.getBody(), formSpec); // Special handling for file upload fields: since browser security measures prevent setting // their values programatically, and prevent carrying their selected values over when cloning, @@ -235,3 +250,4 @@ Ext.define('Ext.form.action.Submit', { return Ext.decode(response.responseText); } }); +