|
@@ -50,7 +50,7 @@ function closeStagPopup(_noEvent = false) {
|
|
|
refreshDynamicStagPopup();
|
|
|
}
|
|
|
else {
|
|
|
- fastReload();
|
|
|
+ fastReload(popup.is('[update-target]') ? popup.attr('update-target') : '');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -81,7 +81,7 @@ function convertContentLinksForInPopupNavigation(popup) {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-function openDynamicStagPopup(_url, initer, title, updateParent, style = '', replace = false) {
|
|
|
+function openDynamicStagPopup(_url, initer, title, updateParent, style = '', replace = false, updateTarget = null) {
|
|
|
let url = _url;
|
|
|
if(url.indexOf('popupmode') === -1) {
|
|
|
url += (url.indexOf('?') !== -1 ? '&' : '?') + 'popupmode=1';
|
|
@@ -134,6 +134,10 @@ function openDynamicStagPopup(_url, initer, title, updateParent, style = '', rep
|
|
|
popup.removeAttr('update-parent');
|
|
|
}
|
|
|
showStagPopup(url, true);
|
|
|
+
|
|
|
+ if(updateTarget) {
|
|
|
+ popup.attr('update-target', updateTarget);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if(initer) runMCInitializer(initer);
|
|
@@ -218,7 +222,9 @@ function hasResponseError(_data) {
|
|
|
trig.attr('mc-initer'),
|
|
|
trig.attr('title'),
|
|
|
trig.is('[update-parent]'),
|
|
|
- trig.attr('popup-style')
|
|
|
+ trig.attr('popup-style'),
|
|
|
+ false,
|
|
|
+ trig.is('[update-target]') ? trig.attr('update-target') : null
|
|
|
);
|
|
|
return false;
|
|
|
});
|
|
@@ -233,7 +239,8 @@ function hasResponseError(_data) {
|
|
|
trig.attr('title'),
|
|
|
null, // will be inherited when replacing
|
|
|
null, // will be inherited when replacing
|
|
|
- true
|
|
|
+ true,
|
|
|
+ null
|
|
|
);
|
|
|
return false;
|
|
|
});
|