Roo/form/DayPicker.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 22 Mar 2011 09:20:32 +0000 (17:20 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 22 Mar 2011 09:20:32 +0000 (17:20 +0800)
Roo/form/DayPicker.js

index 4a931f2..64cf9e2 100644 (file)
@@ -112,10 +112,21 @@ Roo.extend(Roo.form.DayPicker, Roo.form.Field,  {
     onClick : function(e){ 
         //this.setChecked(!this.checked);
         Roo.get(e.target).toggleClass('x-menu-item-checked');
+        this.refreshValue();
         //if(this.el.dom.checked != this.checked){
         //    this.setValue(this.el.dom.checked);
        // }
     },
+    
+    // private
+    refreshValue : function()
+    {
+        var val = '';
+        viewEl.select('img').each(function(e,i)) {
+           Roo.log(e);
+           Roo.log(e);
+        });
+    }
 
     /**
      * Sets the checked state of the checkbox.