* element by passing it or its id or mask the form itself by passing in true.
* @type Mixed
*/
- waitMsgTarget : undefined,
+ waitMsgTarget : false,
// private
initEl : function(el){
beforeAction : function(action){
var o = action.options;
- 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){
afterAction : function(action, success){
this.activeAction = null;
var o = action.options;
- if(o.waitMsg){
- if(this.waitMsgTarget === true){
- this.el.unmask();
- }else if(this.waitMsgTarget){
- this.waitMsgTarget.unmask();
- }else{
- Roo.MessageBox.updateProgress(1);
- Roo.MessageBox.hide();
- }
+
+ if(this.waitMsgTarget === true){
+ this.el.unmask();
+ }else if(this.waitMsgTarget){
+ this.waitMsgTarget.unmask();
+ }else{
+ Roo.MessageBox.updateProgress(1);
+ Roo.MessageBox.hide();
}
+
if(success){
if(o.reset){
this.reset();