Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Giovanni Sidoel 94 posts 233 karma points
    Jul 26, 2019 @ 12:33
    Giovanni Sidoel
    0

    Datepicker not working [solved]

    Hi I recently added this package to a 7.12.4 instance and the datepicker was not working:

    enter image description here

    There was a js error in the console:

    Cannot read property '_weekdaysMin' of undefined at new DateRangePicker
    

    To solve this you need to edit the js file at App_Plugins/Analytics/lib/daterangepicker/daterangepicker.js

    Change lines 45 and 46 to

    daysOfWeek: moment.weekdaysMin(), 
    monthNames: moment.monthsShort(),
    

    And then increment the version number of the clientdependecy in config/ClientDependency.config

    might want to touch web.config just to be sure.

Please Sign in or register to post replies

Write your reply to:

Draft