Roo/bootstrap/DateField.js
authorEdward <edward@roojs.com>
Tue, 10 Jul 2018 06:24:36 +0000 (14:24 +0800)
committerEdward <edward@roojs.com>
Tue, 10 Jul 2018 06:24:36 +0000 (14:24 +0800)
Roo/bootstrap/DateField.js

index 0a8767a..f86397a 100644 (file)
@@ -524,8 +524,13 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
         this.hide();
     },
     
-    show : function()
+    show : function(isElement)
     {
+        if(isElement){
+            this.getEl().removeClass('hidden');
+            return;
+        }
+        
         this.picker().show();
         this.update();
         this.place();
@@ -533,8 +538,13 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
         this.fireEvent('show', this, this.date);
     },
     
-    hide : function()
+    hide : function(isElement)
     {
+        if(isElement){
+            this.getEl().addClass('hidden');
+            return;
+        }
+        
         if(this.isInline) {
             return;
         }