Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » DatePickerField not working in Admin popup

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 426 Views
  • lozhowlett
    Avatar
    Community Member
    146 Posts

    DatePickerField not working in Admin popup Link to this post

    Hi Everyone

    For some odd reason I cant get the date picker to work, when I click nothing happens... this is the error console output which suggests its not finding the jquery file!

    Failed to load resource: the server responded with a status of 404 (Not Found)
    jquery.livequery.js:226Uncaught ReferenceError: jQuery is not defined
    jquery.metadata.js:148Uncaught ReferenceError: jQuery is not defined
    dom_jquery_ui.js:18Uncaught ReferenceError: jQuery is not defined
    datepicker_init.js:13Uncaught ReferenceError: jQuery is not defined
    2Refused to set unsafe header "Connection"
    jquery.livequery.js:226Uncaught ReferenceError: jQuery is not defined
    jquery.metadata.js:148Uncaught ReferenceError: jQuery is not defined
    dom_jquery_ui.js:18Uncaught ReferenceError: jQuery is not defined
    datepicker_init.js:13Uncaught ReferenceError: jQuery is not defined
    2Refused to set unsafe header "Connection"

    This is the code....

    <?php
    class TvAiring extends DataObject {

       public static $db = array(
    'Date' => 'Date',
    'Time' => 'Time',
    'Channel' => 'Text',
    'Show' => 'Text',
    'Round' => 'Text'
       );

    static $has_one = array (
    'TvShed' => 'TvShed'
    );

    function getCMSFields_forPopup() {
    $fields = new FieldSet();
    $fields->push(new DatePickerField('Date'));
    $fields->push(new TimeField('Time'));
    $fields->push(new TextField('Channel'));
    $fields->push(new TextField('Show'));
    $fields->push(new TextField('Round'));
    return $fields;
    }

    }

    thanks in advance!

    426 Views
Page: 1
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.