summaryrefslogtreecommitdiffstats
path: root/application/views/file
diff options
context:
space:
mode:
authorJoakim Reinert <mail@jreinert.com>2015-05-01 22:28:54 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-05 12:21:27 +0200
commitda835670f796774d1f98c05dfdf7da1c7ba2655a (patch)
tree22922112e521779d76c7f2b2c418cee64a729e17 /application/views/file
parentf7da6a0ee8c3b79deb8995e592a130a4a409dc70 (diff)
Use global appConfig js variable instead of passing it down
Initialize it in header
Diffstat (limited to 'application/views/file')
-rw-r--r--application/views/file/html_header.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/application/views/file/html_header.php b/application/views/file/html_header.php
index 520e2482a..a5a6da99f 100644
--- a/application/views/file/html_header.php
+++ b/application/views/file/html_header.php
@@ -3,14 +3,11 @@ $force_full_html = true;
include(FCPATH."application/views/header.php"); ?>
</div><!-- .container -->
-
<script type="text/javascript">
/* <![CDATA[ */
- window.appConfig = {
- lexers: <?php echo json_encode($lexers); ?>
- }
+ window.appConfig.lexers = <?php echo json_encode($lexers); ?>;
/* ]]> */
-</script>
+<script>
<?php if (isset($error_message)) {
include 'framgents/alert-wide.php';