Roo/menu/DateMenu.js
authorChris <chris@roojs.com>
Tue, 16 Oct 2012 09:28:24 +0000 (17:28 +0800)
committerChris <chris@roojs.com>
Tue, 16 Oct 2012 09:28:24 +0000 (17:28 +0800)
Roo/menu/DateMenu.js

index 3f60724..e92b3a2 100644 (file)
  * Creates a new DateMenu
  * @param {Object} config Configuration options
  */
-Roo.menu.DateMenu = function(config){
-    Roo.menu.DateMenu.superclass.constructor.call(this, config);
-    this.plain = true;
-    var di = new Roo.menu.DateItem(config);
-    this.add(di);
-    /**
-     * The {@link Roo.DatePicker} instance for this DateMenu
-     * @type DatePicker
-     */
-    this.picker = di.picker;
-    /**
-     * @event select
-     * @param {DatePicker} picker
-     * @param {Date} date
-     */
-    this.relayEvents(di, ["select"]);
-    this.on('beforeshow', function(){
-        if(this.picker){
-            this.picker.hideMonthPicker(false);
-        }
-    }, this);
-};
-Roo.extend(Roo.menu.DateMenu, Roo.menu.Menu, {
-    cls:'x-date-menu'
-});
\ No newline at end of file