How do I fix this in the best way? The front end booking form lacks some files.
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (jquery-clockpicker.css, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (pikaday.css, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (jquery-clockpicker.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (moment.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (pikaday.js, line 0) [Error] ReferenceError: Can't find variable: Pikaday showDatepicker (restaurang.loc:107)
Seels like it should be like this:
In booking.php:
public function onRun()
{
$this->addJs('/modules/system/assets/ui/vendor/moment/moment.js');
$this->addCss('/modules/system/assets/ui/vendor/pikaday/css/pikaday.css');
$this->addJs('/modules/system/assets/ui/vendor/pikaday/js/pikaday.js');
$this->addCss('/modules/system/assets/ui/vendor/clockpicker/css/jquery-clockpicker.css');
$this->addJs('/modules/system/assets/ui/vendor/clockpicker/js/jquery-clockpicker.js');
}
Last updated
I changed the path of files. There were old pathes in October Beta. Thank you for reporting this issue!
1-5 of 5