Commit b6f63ff7 authored by Robert Lyon's avatar Robert Lyon

Bug 1835988: Needing to include datepicker *.js files correctly

When the site is a subdirectory

behatnotneeded

Change-Id: I53a562f9fb5c7f52132cbabd00bb6bb3969a35f3
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent e2901f9c
......@@ -271,8 +271,8 @@ function pieform_element_calendar_get_headdata($element) {
$libjs = $element['jsroot'] . 'js/jquery-ui.min.js';
$libcss = $element['jsroot'] . 'css/smoothness/jquery-ui.min.css';
$bootstrapdatetimejs = '/js/bootstrap-datetimepicker/tempusdominus-bootstrap-4.js';
$momentjs = '/js/momentjs/moment-with-locales.min.js';
$bootstrapdatetimejs = get_config('wwwroot') . 'js/bootstrap-datetimepicker/tempusdominus-bootstrap-4.js';
$momentjs = get_config('wwwroot') . 'js/momentjs/moment-with-locales.min.js';
$prev = get_string('datepicker_prevText');
$next = get_string('datepicker_nextText');
$result = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment