|
@@ -80,7 +80,8 @@ function convertContentLinksForInPopupNavigation(popup) {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-function openDynamicStagPopup(url, initer, title, updateParent, style = '', replace = false) {
|
|
|
|
|
|
+function openDynamicStagPopup(_url, initer, title, updateParent, style = '', replace = false) {
|
|
|
|
+ let url = _url;
|
|
if(url.indexOf('popupmode') === -1) {
|
|
if(url.indexOf('popupmode') === -1) {
|
|
url += (url.indexOf('?') !== -1 ? '&' : '?') + 'popupmode=1';
|
|
url += (url.indexOf('?') !== -1 ? '&' : '?') + 'popupmode=1';
|
|
}
|
|
}
|
|
@@ -138,6 +139,9 @@ function openDynamicStagPopup(url, initer, title, updateParent, style = '', repl
|
|
runMCInitializer('pro-suggest'); // not the place for this! Move to better place.
|
|
runMCInitializer('pro-suggest'); // not the place for this! Move to better place.
|
|
initMoes();
|
|
initMoes();
|
|
hideMask();
|
|
hideMask();
|
|
|
|
+ }).fail(() => {
|
|
|
|
+ toastr.error('Unable to open ' + _url);
|
|
|
|
+ hideMask();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
function isDynamicStagPopupPresent() {
|
|
function isDynamicStagPopupPresent() {
|