* @cfg {Boolean} fileUpload
* Set to true if this form is a file upload.
*/
- /**
- * @cfg {Roo.form.LayoutDialog} dialog
- * If you set this to a Roo.form.Dialog, it will get masked when saving..
- */
+
/**
* @cfg {Object} baseParams
* Parameters to pass with all requests. e.g. baseParams: {id: '123', foo: 'bar'}.
beforeAction : function(action){
var o = action.options;
- if (this.dialog) {
- o.waitMsg = o.waitMsg || true;
- o.waitMsgTarget = this.dialog.el;
- }
- if(o.waitMsg){
- if(this.waitMsgTarget === true){
- this.el.mask(o.waitMsg, 'x-mask-loading');
- }else if(this.waitMsgTarget){
- this.waitMsgTarget = Roo.get(this.waitMsgTarget);
- this.waitMsgTarget.mask(o.waitMsg, 'x-mask-loading');
- }else{
- Roo.MessageBox.wait(o.waitMsg, o.waitTitle || this.waitTitle || 'Please Wait...');
- }
+ if(typeof(this.waitMsgTarget) == 'undefined'){
+ Roo.get(document.documentElement).mask(o.waitMsg || "Sending", 'x-mask-loading');
+ if(this.waitMsgTarget === true){
+ this.el.mask(o.waitMsg || "Sending", 'x-mask-loading');
+ }else if(this.waitMsgTarget){
+ this.waitMsgTarget = Roo.get(this.waitMsgTarget);
+ this.waitMsgTarget.mask(o.waitMsg || "Sending", 'x-mask-loading');
+ }else {
+ Roo.MessageBox.wait(o.waitMsg || "Sending", o.waitTitle || this.waitTitle || 'Please Wait...');
}
+
},
// private