Skip to content

Commit

Permalink
Fixes #5246 JS using 'settings' not loading correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed May 14, 2024
1 parent 51d7875 commit 2ee1433
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions e107_handlers/js_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1253,10 +1253,8 @@ public function renderJs($mod, $zone = null, $external = true, $return = false)
$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;
Expand Down

0 comments on commit 2ee1433

Please sign in to comment.