summaryrefslogtreecommitdiffstats
path: root/application/views/file
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/file')
-rw-r--r--application/views/file/html_header.php4
-rw-r--r--application/views/file/html_paste_header.php4
2 files changed, 5 insertions, 3 deletions
diff --git a/application/views/file/html_header.php b/application/views/file/html_header.php
index fdce101a2..520e2482a 100644
--- a/application/views/file/html_header.php
+++ b/application/views/file/html_header.php
@@ -6,7 +6,9 @@ include(FCPATH."application/views/header.php"); ?>
<script type="text/javascript">
/* <![CDATA[ */
- window.lexers = <?php echo json_encode($lexers); ?>;
+ window.appConfig = {
+ lexers: <?php echo json_encode($lexers); ?>
+ }
/* ]]> */
</script>
diff --git a/application/views/file/html_paste_header.php b/application/views/file/html_paste_header.php
index 474e06ccf..ee14a70c7 100644
--- a/application/views/file/html_paste_header.php
+++ b/application/views/file/html_paste_header.php
@@ -5,12 +5,12 @@
<li><a href="<?=site_url($id)."/"; ?>" class="navbar-brand" data-toggle="modal"><?php echo $title ?></a></li>
<li class="divider"></li>
<li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="language-toggle-<?=$id; ?>">
+ <a href="#" class="dropdown-toggle lexer-toggle" data-toggle="dropdown">
Language: <?php echo htmlspecialchars($current_highlight); ?>
<b class="caret"></b>
</a>
<div class="dropdown-menu" style="padding: 15px;">
- <form>
+ <form class="lexer-form">
<input data-base-url="<?=site_url($id); ?>" type="text" id="language-<?=$id; ?>" placeholder="Language" class="form-control">
</form>
</div>