[CLOSED] Ext.DatePicker.prototype.initComponent.createSeque nce

  1. #1

    [CLOSED] Ext.DatePicker.prototype.initComponent.createSeque nce

    Hi

    After upgrading the ext.net to 2.x, this line dont work:

    Ext.DatePicker.prototype.initComponent = Ext.DatePicker.prototype.initComponent.createSequence(function () { this.addEvents("prevmonth", "nextmonth"); });
    The problem is in createSequence...

    Thanks.
    Last edited by Daniil; Jan 20, 2012 at 2:26 PM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi,

    Please see the CHANGELOG's item #40:
    https://examples2.ext.net/#/Getting_...nts/CHANGELOG/
  3. #3
    Sorry, but I did not understand how to change the script...

    Ext.DatePicker.prototype.initComponent = Ext.DatePicker.prototype.initComponent.createSequence(function () { this.addEvents("prevmonth", "nextmonth"); });
    Ext.DatePicker.prototype.showPrevMonth = Ext.DatePicker.prototype.showPrevMonth.createSequence(function () { this.fireEvent("prevmonth"); });
    Ext.DatePicker.prototype.showNextMonth = Ext.DatePicker.prototype.showNextMonth.createSequence(function () { this.fireEvent("nextmonth"); });
    it's my fault, but I do not quite understand how to change the above script...
    Can you be more specific?

    Thanks for any help.
  4. #4
    Please replace:
    Ext.DatePicker.prototype.showNextMonth =  Ext.DatePicker.prototype.showNextMonth.createSequence(someFunction);
    with
    Ext.Function.createSequence(Ext.DatePicker.prototype.showNextMonth, someFunction);
  5. #5
    Works

    Thank you very much, Daniil...

Similar Threads

  1. [CLOSED] datepicker from to example
    By LeeTheGreek in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 04, 2010, 2:29 PM
  2. Problem with AjaxMethod and prototype
    By glenh in forum 1.x Help
    Replies: 4
    Last Post: Aug 24, 2009, 11:13 AM
  3. prototype scriptaculous
    By Ian in forum 1.x Help
    Replies: 2
    Last Post: Apr 24, 2009, 7:00 AM
  4. [CLOSED] DatePicker
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 18, 2008, 4:31 AM
  5. [CLOSED] Datepicker help
    By Jurke in forum 1.x Help
    Replies: 13
    Last Post: Sep 22, 2008, 6:52 AM

Posting Permissions