Copied to clipboard

Flag this post as spam?

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


  • Dan Diplo 1554 posts 6205 karma points MVP 5x c-trib
    Jan 19, 2014 @ 21:17
    Dan Diplo
    0

    Date Range Picker Appears Read Only?

    If, after installation, the Date Range Picker appears to be read-only (it has the disabled cursor on it) then it's because Umbraco isn't loading the new javascript (it is still getting the old cached version). This seems to be a common problem in Umbraco 7.

    Normally force reloading CTRL-F5 the page the Date Range Picker is on will solve this. You can also try touching web.config and, if desperate, try enabling debug="true" in web.config. If you use Chrome you can also disable cache in the Developer Tools menu.

     

  • David Zweben 265 posts 749 karma points
    Jan 20, 2014 @ 00:29
    David Zweben
    0

    Hi Dan,

    Thanks for the quick reply. I tried it again without even emptying the cache, and it seems to be working perfectly now. I've been looking for something like this for a while, so thanks for making it.

    I have a couple suggestions:

    • I think there should either be a dropdown menu for Date Format with common selections, and a textstring as a fallback if you want something that's not in there, or at least a link to some documentation on the proper syntax you can use in the Date Format description.

    • I think it would help to show the total day/time duration of the range next to the picker somewhere.

  • Dan Diplo 1554 posts 6205 karma points MVP 5x c-trib
    Jan 20, 2014 @ 09:57
    Dan Diplo
    0

    Hi David,

    Glad you got it working. The caching thing in Umbraco 7 is a bit frustrating, but hopefully this will be addressed in new updates so it isn't a problem for people.

    Both your suggestions are good ones. I did actually toy around with the second option a bit, but wasn't satisfied with how it worked. But it's something I'll definitely look at adding.

    Regarding the formatting, you can find more info at http://momentjs.com/docs/#/displaying/format/ ; I agree, though, a dropdown might be helpful. I'll just need to work out how you do this for pre-values in 7 :)

Please Sign in or register to post replies

Write your reply to:

Draft