|
@@ -163,6 +163,7 @@ function onFastLoaded(_data, _href, _history, _target = null) {
|
|
|
|
|
|
// do for each element in _target
|
|
// do for each element in _target
|
|
let responseError = false;
|
|
let responseError = false;
|
|
|
|
+ let originalTarget = _target;
|
|
_target = _target ? _target : '.stag-content';
|
|
_target = _target ? _target : '.stag-content';
|
|
_target = _target.split(',').map(_x => $.trim(_x));
|
|
_target = _target.split(',').map(_x => $.trim(_x));
|
|
for (let i = 0; i < _target.length; i++) {
|
|
for (let i = 0; i < _target.length; i++) {
|
|
@@ -192,9 +193,9 @@ function onFastLoaded(_data, _href, _history, _target = null) {
|
|
initQuillEdit();
|
|
initQuillEdit();
|
|
initPrimaryForm();
|
|
initPrimaryForm();
|
|
initPatientPresenceIndicator();
|
|
initPatientPresenceIndicator();
|
|
- runMCInitializers();
|
|
|
|
initFileInputs();
|
|
initFileInputs();
|
|
initMoes();
|
|
initMoes();
|
|
|
|
+ runMCInitializers(originalTarget);
|
|
if (window.top.currentMcUrl.split('?')[0] !== window.top.location.href.split('?')[0]) {
|
|
if (window.top.currentMcUrl.split('?')[0] !== window.top.location.href.split('?')[0]) {
|
|
$(window).scrollTop(0);
|
|
$(window).scrollTop(0);
|
|
}
|
|
}
|