Commit ed821743 authored by Robert Lyon's avatar Robert Lyon Committed by Cecilia Vela Gurovic

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>
(cherry picked from commit b6f63ff7)
parent 59ab073d
......@@ -252,8 +252,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/bootstrap-datetimepicker.min.js';
$momentjs = '/js/momentjs/moment-with-locales.min.js';
$bootstrapdatetimejs = get_config('wwwroot') . 'js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.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