summaryrefslogtreecommitdiffstats
path: root/application/views/file
diff options
context:
space:
mode:
authorJoakim Reinert <mail@jreinert.com>2015-04-18 23:55:22 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-05 12:21:26 +0200
commitfe68477d8b60bc9303dd2bcd542915ac05e3fac6 (patch)
tree341ca9d71423c21033cbe5d333603bd3f2e0c3ca /application/views/file
parent9f1fb6e1c8fbe2c54b5d9a7f0755557acd7ea84a (diff)
Refactor lexer input setup
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>