diff options
| author | Jehan-Guillaume | 2014-09-08 16:10:12 +0000 |
|---|---|---|
| committer | Robert Treat | 2017-10-30 22:31:50 +0000 |
| commit | 9282f7c490f8465cef6e0d072e6619010a41fab6 (patch) | |
| tree | f820cdbbb8d985018876582a856af5b4eccccee3 | |
| parent | f926266021767b25238f2212e2e1f79b7c752efb (diff) | |
Fix javascript bug with popups
Dynamic themes applies the current main frame theme to the browser
tree frame without checking if it actually exists in the current
window.
Thispatch fix the resulting javascript error, breaking any other
following code.
| -rw-r--r-- | classes/Misc.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/Misc.php b/classes/Misc.php index 8e741ae5..96a49534 100644 --- a/classes/Misc.php +++ b/classes/Misc.php @@ -546,6 +546,7 @@ echo "<script type=\"text/javascript\" src=\"libraries/js/jquery.js\"></script>"; echo "<script type=\"text/javascript\">// <!-- \n"; echo "$(document).ready(function() { \n"; + echo " if (window.parent.frames.length > 1)\n"; echo " $('#csstheme', window.parent.frames[0].document).attr('href','themes/{$conf['theme']}/global.css');\n"; echo "}); // --></script>\n"; echo "<title>", htmlspecialchars($appName); |
