Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3695 in a recent build.
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    10
    Vote Rating
    0
    moisan.j is on a distinguished road

      0  

    Default datepickerfield with picker freez the app

    datepickerfield with picker freez the app


    Ext version tested:
    • Sencha Touch 2.1.0
    Browser versions tested against:
    • Chrome 20.0.1132.47 m
    DOCTYPE tested against:
    • <!DOCTYPE HTML>
    Description:
    • When trying to choose a date in datepickerfield, navigator freez and don't respond
    Steps to reproduce the problem:
    • Application is a Sencha MVC application
    • Just add this code in anyone forms view:
    • Code:
      {                xtype: "datepickerfield",
                      label: "date",
                      margin: "1.2em 0em 0em 0em",
                      dateFormat: "d/m/Y",
                      picker: {
                          yearFrom: Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, -10), "Y"),
                          yearTo: Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, 20), "Y")
                      },
                      action: "dluoMin"
                  }
    The result that was expected:
    • datepicker must show taking care of year initialization in picker
    The result that occurs instead:
    • navigator freez.
    Test Case:
    To reproduce go on: http://docs.sencha.com/touch/2-1/#!/api/Ext.field.DatePicker
    In the codeEditor of example add below code to datepickerfield configuration:
    Code:
    picker: {                    yearFrom: Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, -10), "Y"),
                        yearTo: Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, 20), "Y")
                    },
    INFORMATIONScreenshot or Video:
    • /
    See this URL for live test case: http://Debugging already done:
    • /
    Possible fix:
    • /
    Additional CSS used:
    • /
    Operating System:
    • WinXP Pro

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,521
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The reason for this is yearFrom/yearTo expect an integer where you are providing a string.

    Code:
    Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, -10), 'Y') === '2002'
    So you can work around it currently by doing this:

    Code:
    {
        xtype      : 'datepickerfield',
        label      : 'date',
        margin     : '1.2em 0em 0em 0em',
        dateFormat : 'd/m/Y',
        picker     : {
            yearFrom : parseInt(Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, -10), 'Y')),
            yearTo   : parseInt(Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, 20), 'Y'))
        },
        action     : 'dluoMin'
    }
    Now I think we can do the parseInt in the framework to protect things if we can so I will open as a bug.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Posts
    10
    Vote Rating
    0
    moisan.j is on a distinguished road

      0  

    Default


    That's wkorking fine, well done, Big Thank.

Thread Participants: 1