public/javascripts/inputex/build/inputex.js
function(options) {
      inputEx.Form.superclass.setOptions.call(this, options);

      this.buttons = [];

      this.options.buttons = options.buttons || [];

      this.options.action = options.action;
   	this.options.method = options.method;

		this.options.className =  options.className || 'inputEx-Group';
	   this.options.autocomplete = lang.isUndefined(options.autocomplete) ?
	                                  inputEx.browserAutocomplete :
	                                  (options.autocomplete === false || options.autocomplete === "off") ? false : true;
		
		this.options.enctype = options.enctype;

      if(options.ajax) {
         this.options.ajax = {};
         this.options.ajax.method = options.ajax.method || 'POST';
         this.options.ajax.uri = options.ajax.uri || 'default.php';
         this.options.ajax.callback = options.ajax.callback || {};
         this.options.ajax.callback.scope = options.ajax.callback.scope || this;
         this.options.ajax.showMask = lang.isUndefined(options.ajax.showMask) ? false : options.ajax.showMask;

			this.options.ajax.contentType = options.ajax.contentType || "application/json";
			this.options.ajax.wrapObject = options.ajax.wrapObject;
      }
      
      if (lang.isFunction(options.onSubmit)) {
         this.options.onSubmit = options.onSubmit;
      }
   }
function(options) {
      inputEx.Form.superclass.setOptions.call(this, options);

      this.buttons = [];

      this.options.buttons = options.buttons || [];

      this.options.action = options.action;
   	this.options.method = options.method;

		this.options.className =  options.className || 'inputEx-Group';
	   this.options.autocomplete = lang.isUndefined(options.autocomplete) ?
	                                  inputEx.browserAutocomplete :
	                                  (options.autocomplete === false || options.autocomplete === "off") ? false : true;
		
		this.options.enctype = options.enctype;

      if(options.ajax) {
         this.options.ajax = {};
         this.options.ajax.method = options.ajax.method || 'POST';
         this.options.ajax.uri = options.ajax.uri || 'default.php';
         this.options.ajax.callback = options.ajax.callback || {};
         this.options.ajax.callback.scope = options.ajax.callback.scope || this;
         this.options.ajax.showMask = lang.isUndefined(options.ajax.showMask) ? false : options.ajax.showMask;

			this.options.ajax.contentType = options.ajax.contentType || "application/json";
			this.options.ajax.wrapObject = options.ajax.wrapObject;
      }
      
      if (lang.isFunction(options.onSubmit)) {
         this.options.onSubmit = options.onSubmit;
      }
   }
function ( options ) { inputEx . Form . superclass . setOptions . call ( this , options ) ; this . buttons = [ ] ; this . options . buttons = options . buttons || [ ] ; this . options . action = options . action ; this . options . method = options . method ; this . options . className = options . className || 'inputEx-Group' ; this . options . autocomplete = lang . isUndefined ( options . autocomplete ) ? inputEx . browserAutocomplete : ( options . autocomplete === false || options . autocomplete === "off" ) ? false : true ; this . options . enctype = options . enctype ; if ( options . ajax ) { this . options . ajax = { } ; this . options . ajax . method = options . ajax . method || 'POST' ; this . options . ajax . uri = options . ajax . uri || 'default.php' ; this . options . ajax . callback = options . ajax . callback || { } ; this . options . ajax . callback . scope = options . ajax . callback . scope || this ; this . options . ajax . showMask = lang . isUndefined ( options . ajax . showMask ) ? false : options . ajax . showMask ; this . options . ajax . contentType = options . ajax . contentType || "application/json" ; this . options . ajax . wrapObject = options . ajax . wrapObject ; } if ( lang . isFunction ( options . onSubmit ) ) { this . options . onSubmit = options . onSubmit ; } }
Adds buttons and set ajax default parameters
@param {Object} options Options object as passed to the constructor
Adds buttons and set ajax default parameters