Results 1 to 2 of 2

Thread: Syntax error in createEdgePicker()

    You found a bug! We've classified it as EXTJS-27041 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    May 2017
    Posts
    1
    Vote Rating
    0
      0  

    Default Syntax error in createEdgePicker()

    Hello guys,

    I have found a syntax error in the source code of the function createEdgePicker() in the Class Ext.field.Date. The function getFullyear() should be --> getFullYear()
    ExtJs modern 6.5.1 Original:

    createEdgePicker: function() {
    var me = this,
    minDate = this.getMinDate(),
    maxDate = this.getMaxDate();

    return Ext.merge({
    yearFrom: minDate ? minDate.getFullyear() : (new Date().getFullYear() - 20),
    yearTo: maxDate ? maxDate.getFullyear() : (new Date().getFullYear() + 20)
    }, me.getEdgePicker());
    }

    But it has to be

    createEdgePicker: function() {
    var me = this,
    minDate = this.getMinDate(),
    maxDate = this.getMaxDate();

    return Ext.merge({
    yearFrom: minDate ? minDate.getFullYear() : (new Date().getFullYear() - 20),
    yearTo: maxDate ? maxDate.getFullYear() : (new Date().getFullYear() + 20)
    }, me.getEdgePicker());
    }

    The reason I have found this error is because the date.Picker ended at year 1997.

    I hope you guys can use this fix.

    Greetings Paul

  2. #2
    Sencha - Support Team
    Join Date
    Sep 2017
    Posts
    67
    Vote Rating
    -114
      -1  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Error decoding response: SyntaxError: syntax error
    By surajan in forum Community Discussion
    Replies: 2
    Last Post: 18 Jul 2012, 9:54 PM
  2. Syntax Error in IE8
    By adn295 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 4 Jan 2012, 10:34 PM
  3. Error: syntax error Line: 8 Source Code: )
    By mypen in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 1 Sep 2010, 9:01 PM
  4. Error: syntax error Line: 8 Source Code: )
    By mypen in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 21 Aug 2010, 7:05 AM
  5. Error on submitting form (Syntax error () line 7389)
    By bisounux in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 20 Aug 2009, 2:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •