Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / src / form / action / Action.js
index 3d19d65..3900b17 100644 (file)
@@ -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.Action
  * @extends Ext.Base
@@ -11,8 +25,6 @@
  * {@link Ext.form.Basic#load load} and {@link Ext.form.Basic#doAction doAction}),
  * and to the {@link Ext.form.Basic#actioncomplete actioncomplete} and
  * {@link Ext.form.Basic#actionfailed actionfailed} event handlers.</p>
- * @constructor
- * @param {Object} config The configuration for this instance.
  */
 Ext.define('Ext.form.action.Action', {
     alternateClassName: 'Ext.form.Action',
@@ -48,7 +60,7 @@ Ext.define('Ext.form.action.Action', {
 
     /**
      * @cfg {Object} headers <p>Extra headers to be sent in the AJAX request for submit and load actions. See
-     * {@link Ext.data.Connection#headers}.</p>
+     * {@link Ext.data.proxy.Ajax#headers}.</p>
      */
 
     /**
@@ -97,7 +109,7 @@ Ext.define('Ext.form.action.Action', {
      * @cfg {Boolean} submitEmptyText If set to <tt>true</tt>, the emptyText value will be sent with the form
      * when it is submitted. Defaults to <tt>true</tt>.
      */
-
+    submitEmptyText : true,
     /**
      * @property type
      * The type of action this Action instance performs.
@@ -162,8 +174,10 @@ buttons: [{
      * @type {Object}
      */
 
-
-
+    /**
+     * Creates new Action.
+     * @param {Object} config (optional) Config object.
+     */
     constructor: function(config) {
         if (config) {
             Ext.apply(this, config);
@@ -312,3 +326,4 @@ buttons: [{
 
     }
 });
+