Skip to content

Commit

Permalink
Show the line numbers when editing provisions/vparams (#66)
Browse files Browse the repository at this point in the history
Show the line numbers when editing provisions/vparams
  • Loading branch information
akcoder authored and zaidka committed Mar 23, 2017
1 parent 6ef04ba commit 302fd1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/provisions/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
</div>

<script type="text/javascript">
CodeMirror.fromTextArea(document.getElementById('script'), {mode: 'javascript'});
CodeMirror.fromTextArea(document.getElementById('script'), {mode: 'javascript', lineNumbers: true});
</script>
2 changes: 1 addition & 1 deletion app/views/virtual_parameters/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
</div>

<script type="text/javascript">
CodeMirror.fromTextArea(document.getElementById('script'), {mode: 'javascript'});
CodeMirror.fromTextArea(document.getElementById('script'), {mode: 'javascript', lineNumbers: true});
</script>

0 comments on commit 302fd1b

Please sign in to comment.