mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Fixes #5246 JS using 'settings' not loading correctly.
This commit is contained in:
parent
51d78758f8
commit
2ee1433a84
@ -1253,10 +1253,8 @@ class e_jsmanager
|
||||
$tp = e107::getParser();
|
||||
$json = $tp->toJSON($this->_e_js_settings);
|
||||
echo "<script>\n";
|
||||
echo '$(document).ready(function() {';
|
||||
echo "var e107 = e107 || {'settings': {}, 'behaviors': {}};\n";
|
||||
echo "jQuery.extend(e107.settings, " . $json . ");\n";
|
||||
echo '});';
|
||||
echo "</script>\n";
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user