allow string based values for comboboxarray
[roojs1] / Roo / CalendarPanel.js
index 31d2a8b..1755aa4 100644 (file)
@@ -42,7 +42,7 @@ Roo.CalendarPanel = function(config){
     }
     this.view = new Roo.calendar.View(Roo.apply({
         skipNavHeader : true,
-        skipMonthHeader : true
+        skipMonthHeader : false
         
     },config));
     
@@ -156,9 +156,11 @@ Roo.extend(Roo.CalendarPanel, Roo.ContentPanel, {
             cfg.name = this.name;
         }
         
-        ct.createChild(cfg, position);
+        this.view.el =  ct.createChild(cfg, position);
         
-         
+        //if(this.tabIndex !== undefined){
+        //    this.el.dom.setAttribute('tabIndex', this.tabIndex);
+        //}
         
         
         this.view.initEvents();
@@ -170,33 +172,4 @@ Roo.extend(Roo.CalendarPanel, Roo.ContentPanel, {
     
 });
 
-
-
-Roo.each([
-    'getAutoCreate',
-    'initEvents',
-    'resize',
-    'showPrevMonth',
-    'showToday',
-    'showNextMonth',
-    'showPrevYear',
-    'showNextYear',
-    'update',
-    'findCell',
-    'findCells',
-    'findBestRow',
-    'addItem',
-    'clearEvents',
-    'renderEvents',
-    'onEventEnter',
-    'onEventLeave',
-    'onEventClick',
-    'onMonthChange',
-    'onLoad'
-
-    
-], function(p) {
-    Roo.log('add' + p);
-    Roo.CalendarPanel.prototype[p] = Roo.bootstrap.Calendar.prototype[p];
  
-});