|
@@ -99,6 +99,16 @@ $(document).ready(function () {
|
|
|
if(typeof initializeCalendar !== 'undefined') {
|
|
|
initializeCalendar();
|
|
|
}
|
|
|
+ if(typeof initIntakeEvents !== 'undefined') {
|
|
|
+ initIntakeEvents();
|
|
|
+ }
|
|
|
+
|
|
|
+ // replace history on fresh load
|
|
|
+ var target = window.top.location.pathname;
|
|
|
+ if (target.indexOf('/mc') === 0) {
|
|
|
+ target = target.split('/mc')[1];
|
|
|
+ }
|
|
|
+ window.top.history.pushState(target, null, '/mc' + target);
|
|
|
});
|
|
|
function enableTimeSpecificFields(_checked, _valueClass, _rangeClass) {
|
|
|
if(_valueClass) $('.' + _valueClass).prop('disabled', _checked);
|
|
@@ -199,6 +209,9 @@ function onFastLoaded(_data, _href, _history) {
|
|
|
if(typeof initializeCalendar !== 'undefined') {
|
|
|
initializeCalendar();
|
|
|
}
|
|
|
+ if(typeof initIntakeEvents !== 'undefined') {
|
|
|
+ initIntakeEvents();
|
|
|
+ }
|
|
|
|
|
|
// push state
|
|
|
if (_history) {
|