ed26145531929158279d3eeb0ba0de470942a433.svn-base 662 B

1234567891011121314151617181920212223
  1. /*
  2. * Ext JS Library 2.0 Copyright(c) 2006-2007, Ext JS, LLC. licensing@extjs.com
  3. *
  4. * http://extjs.com/license
  5. */
  6. Ext.menu.DateItem = function(A) {
  7. Ext.menu.DateItem.superclass.constructor.call(this, new Ext.DatePicker(A),
  8. A);
  9. this.picker = this.component;
  10. this.addEvents("select");
  11. this.picker.on("render", function(B) {
  12. B.getEl().swallowEvent("click");
  13. B.container.addClass("x-menu-date-item")
  14. });
  15. this.picker.on("select", this.onSelect, this)
  16. };
  17. Ext.extend(Ext.menu.DateItem, Ext.menu.Adapter, {
  18. onSelect : function(B, A) {
  19. this.fireEvent("select", this, A, B);
  20. Ext.menu.DateItem.superclass.handleClick.call(this)
  21. }
  22. });