6f4907e72f1ab7bfecb606a21c2e8132ae5195e0.svn-base 532 B

12345678910111213141516171819202122
  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.DateMenu = function(A) {
  7. Ext.menu.DateMenu.superclass.constructor.call(this, A);
  8. this.plain = true;
  9. var B = new Ext.menu.DateItem(A);
  10. this.add(B);
  11. this.picker = B.picker;
  12. this.relayEvents(B, ["select"]);
  13. this.on("beforeshow", function() {
  14. if (this.picker) {
  15. this.picker.hideMonthPicker(true)
  16. }
  17. }, this)
  18. };
  19. Ext.extend(Ext.menu.DateMenu, Ext.menu.Menu, {
  20. cls : "x-date-menu"
  21. });