mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-27 16:15:42 +02:00
* Api: detect if framework data is missing for popups too and redirect to cd=popup to load it
This commit is contained in:
@@ -130,10 +130,11 @@
|
||||
// ignore SecurityError exception if top is different security context / cross-origin
|
||||
}
|
||||
// if framework not found, but requested to check for it, redirect to cd=yes to create it
|
||||
if (typeof window.framework == 'undefined' && egw_script.getAttribute('data-check-framework') &&
|
||||
if (typeof window.framework == 'undefined' &&
|
||||
!window.location.search.match(/[&?]cd=/))
|
||||
{
|
||||
window.location.search += window.location.search ? "&cd=yes" : "?cd=yes";
|
||||
window.location.search += (window.location.search ? "&" : "?")+
|
||||
(egw_script.getAttribute('data-check-framework') ? "cd=yes" : "cd=popup");
|
||||
}
|
||||
}
|
||||
try {
|
||||
|
Reference in New Issue
Block a user