Jump to:

10990 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar DatePicker JQuery Error

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 3200 Views
  • 3dgoo
    Avatar
    Community Member
    133 Posts

    Event Calendar DatePicker JQuery Error Link to this post

    Hello,

    I have done a fresh install of Silverstripe 2.3.7, installed Data Object Manager r393, and installed Event Calendar r105.

    When I add a new Calendar Event and Add a Date the datepicker does not work, and I am unable to edit the start and end dates.

    It appears this is due to some javascript errors.

    Some of the errors I get are:
    In dataobjectmanager_popup.js, dom_jquery_ui.js, and datepicker_init.js the error is 'jquery' is undefined
    In datepicker_init.js the error is $('.datepicker input').livequery is not a function

    It seems as though jQuery is not loaded for this part of the admin.

    Any help would be much appreciated.

    Cheers

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar DatePicker JQuery Error Link to this post

    If you're on 2.3, you need to be running the 2.3 branch on /branches/2.3/event_calendar

  • 3dgoo
    Avatar
    Community Member
    133 Posts

    Re: Event Calendar DatePicker JQuery Error Link to this post

    Ah, Thanks mate.

    I downloaded the branch. It has this error in it:

    Parse error: syntax error, unexpected T_PROTECTED, expecting ';' or '{' in [site-address]\event_calendar\code\CalendarUI.class.php on line 117

    Which is:

    public function setAnchorEnd($date)
    protected


    It has an unfinished setAnchorEnd function and a floating protected tag.

    I'm guess this should be:

    public function setAnchorEnd($date)
    {
    $this->anchor_end = new sfDate(CalendarUtil::getDateToString($date));
    }

    Now, even with this branch, the same errors are there. Do I need to get an older version of dataobjectmanager?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar DatePicker JQuery Error Link to this post

    Yeah, make sure you're running the 2.3 branch of DOM, too.

  • 3dgoo
    Avatar
    Community Member
    133 Posts

    Re: Event Calendar DatePicker JQuery Error Link to this post

    Awesome. All works now.

    Thanks so much, not only for your quick replies and help, but for all the effort you have put into the modules you have created. They really turn Silverstripe into a powerful CMS.

    Cheers mate!

  • logiczero
    Avatar
    Community Member
    12 Posts

    Re: Event Calendar DatePicker JQuery Error Link to this post

    I have the same problem as ampedup, but I'm not sure how or where to get the branched versions. Are they available in the repository via the web (I couldn't find any 2.3 branches at http://svn.silverstripe.com), or do I have use SVN to get them? I installed the zipped/downloaded version of silverstripe, not a subversion checkout...

  • UncleCheese
    Avatar
    4085 Posts
  • logiczero
    Avatar
    Community Member
    12 Posts

    Re: Event Calendar DatePicker JQuery Error Link to this post

    Thanks for your reply UncleCheese. I downloaded the event_calendar code, but there doesn't seem to be a Data Object Manager (DOM) folder under http://bluehousegroup.svn.beanstalkapp.com/modules/branches/2.3
    ...

    3200 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.