X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_Form.js.html;h=b2cefd7b2b5427262e48fa067441573b11f0064b;hb=7d8290ee43eec264e8d9276b83debe3a035cb929;hp=ae18d01b6cec9f582029c369cd96f4cfdaf7d177;hpb=2a1db797ae4360623f7e3ac751623317dada79f1;p=roojs1
diff --git a/docs/symbols/src/Roo_bootstrap_Form.js.html b/docs/symbols/src/Roo_bootstrap_Form.js.html
index ae18d01b6c..b2cefd7b2b 100644
--- a/docs/symbols/src/Roo_bootstrap_Form.js.html
+++ b/docs/symbols/src/Roo_bootstrap_Form.js.html
@@ -22,6 +22,7 @@
Roo.bootstrap.Form = function(config){
+
Roo.bootstrap.Form.superclass.constructor.call(this, config);
Roo.bootstrap.Form.popover.apply();
@@ -56,7 +57,6 @@
*/
actioncomplete : true
});
-
};
Roo.extend(Roo.bootstrap.Form, Roo.bootstrap.Component, {
@@ -110,6 +110,11 @@
* @cfg {Number} maskOffset Default 100
*/
maskOffset : 100,
+
+ maskBody : false,
getAutoCreate : function(){
@@ -233,9 +238,14 @@ clientValidation Boolean Applies to submit only. Pass true to call fo
beforeAction : function(action){
var o = action.options;
-
+
if(this.loadMask){
- this.el.mask(o.waitMsg || "Sending", 'x-mask-loading');
+
+ if(this.maskBody){
+ Roo.get(document.body).mask(o.waitMsg || "Sending", 'x-mask-loading')
+ } else {
+ this.el.mask(o.waitMsg || "Sending", 'x-mask-loading');
+ }
}
this.activeAction = null;
var o = action.options;
+ if(this.loadMask){
+
+ if(this.maskBody){
+ Roo.get(document.body).unmask();
+ } else {
+ this.el.unmask();
+ }
+ }
+
this.el.unmask();
- f.clearInvalid();
});
-
-
return this;
},
@@ -547,13 +564,50 @@ clientValidation Boolean Applies to submit only. Pass true to call fo
Roo.each(el.items,function(e) {
iter(e);
});
-
-
};
iter(this);
return r;
-
+ },
+
+ hideFields : function(items)
+ {
+ Roo.each(items, function(i){
+
+ var f = this.findField(i);
+
+ if(!f){
+ return;
+ }
+
+ if(f.xtype == 'DateField'){
+ f.setVisible(false);
+ return;
+ }
+
+ f.hide();
+
+ }, this);
+ },
+
+ showFields : function(items)
+ {
+ Roo.each(items, function(i){
+
+ var f = this.findField(i);
+
+ if(!f){
+ return;
+ }
+
+ if(f.xtype == 'DateField'){
+ f.setVisible(true);
+ return;
+ }
+
+ f.show();
+
+ }, this);
}
});