PDA

View Full Version : The mask layer is still after the form submited, how to removed it?



manlsea
13 Sep 2012, 8:18 PM
Ext.define('myWin', {
extend: 'Ext.window.Window',
width: 420,
closable: false,
resizable: false,
collapsible: true,
title: 'System',

initComponent: function () {
var me=this;
var formA = Ext.create('Ext.form.Panel', {
border: false,
title: 'Verification',
padding : 10,
layout: 'anchor',
fieldDefaults: {
labelWidth: 70
},
defaults: {
anchor: '100%',
msgTarget: 'side'
},
items: [ {xtype: 'hiddenfield',value: 0, name: 'id'},{
xtype: 'textfield',
emptyText: 'Your Email',
name: 'email',
vtype: 'email'
}],
buttons: [{ formBind: true, text: 'submit' ,handler: function () {
formA.submit({
url: '/open.php/enhanced',
waitMsg: 'Please wait a minute...',
waitTitle: 'Submiting',
success: function (form, action) {
Ext.example.msg('ok');
},
failure: submitFailure
});
} }
});
Ext.apply(me, {items: [formA]} });
me.callParent(arguments);
}
});

sword-it
13 Sep 2012, 10:47 PM
Hi Manlsea,

It's Bug in Ext 4.1.1 See this report http://www.sencha.com/forum/showthread.php?240226-Form-waitMsg-mask-is-not-cleared-when-submit-fails

(http://www.sencha.com/forum/showthread.php?240226-Form-waitMsg-mask-is-not-cleared-when-submit-fails)An alternate solution is applied Animals patch and it will fix your issue for now until the next release.
http://www.sencha.com/forum/showthread.php?228970-4.1.1-GA-Form-Submit-Problem


(http://www.sencha.com/forum/showthread.php?228970-4.1.1-GA-Form-Submit-Problem)See working sample example - http://jsfiddle.net/maneeshgo/z4Gh9/

manlsea
16 Sep 2012, 5:33 PM
Thank's, By the way, when the new version will be released?