Roo/form/MonthField.js
authorChris <chris@roojs.com>
Tue, 16 Oct 2012 08:49:55 +0000 (16:49 +0800)
committerChris <chris@roojs.com>
Tue, 16 Oct 2012 08:49:55 +0000 (16:49 +0800)
Roo/form/MonthField.js

index dde282c..d4d8fd0 100644 (file)
@@ -292,38 +292,7 @@ dateField.setValue('2006-5-4');
 
     // private
     // Implements the default empty TriggerField.onTriggerClick function to display the DatePicker
-    onTriggerClick : function(){
-        if(this.disabled){
-            return;
-        }
-        if(this.menu == null){
-            this.menu = new Roo.menu.DateMenu();
-        }
-        Roo.apply(this.menu.picker,  {
-            showClear: this.allowBlank,
-            minDate : this.minValue,
-            maxDate : this.maxValue,
-            disabledDatesRE : this.ddMatch,
-            disabledDatesText : this.disabledDatesText,
-            disabledDays : this.disabledDays,
-            disabledDaysText : this.disabledDaysText,
-            format : this.format,
-            minText : String.format(this.minText, this.formatDate(this.minValue)),
-            maxText : String.format(this.maxText, this.formatDate(this.maxValue))
-        });
-        this.menu.on(Roo.apply({}, this.menuListeners, {
-            scope:this
-        }));
-        this.menu.picker.setValue(this.getValue() || new Date());
-        this.menu.show(this.el, "tl-bl?");
-    },
-
-    beforeBlur : function(){
-        var v = this.parseDate(this.getRawValue());
-        if(v){
-            this.setValue(v);
-        }
-    }
+    
 
     /** @cfg {Boolean} grow @hide */
     /** @cfg {Number} growMin @hide */