##// END OF EJS Templates
Toggle line numbers in menu...
Min RK -
Show More
@@ -115,10 +115,6 b' define(['
115 });
115 });
116
116
117 this.events.on("config_changed.Editor", function () {
117 this.events.on("config_changed.Editor", function () {
118 var lineNumbers = editor.codemirror.getOption('lineNumbers');
119 var text = lineNumbers ? "Hide" : "Show";
120 text = text + " Line Numbers";
121 that.element.find('#menu-line-numbers').find("a").text(text);
122 var keyMap = editor.codemirror.getOption('keyMap') || "default";
118 var keyMap = editor.codemirror.getOption('keyMap') || "default";
123 that.element.find(".selected-keymap").removeClass("selected-keymap");
119 that.element.find(".selected-keymap").removeClass("selected-keymap");
124 that.element.find("#menu-keymap-" + keyMap).addClass("selected-keymap");
120 that.element.find("#menu-keymap-" + keyMap).addClass("selected-keymap");
@@ -60,7 +60,7 b' data-file-path="{{file_path}}"'
60 </li>
60 </li>
61 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
61 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
62 <ul id="view-menu" class="dropdown-menu">
62 <ul id="view-menu" class="dropdown-menu">
63 <li id="menu-line-numbers"><a href="#">Hide Line Numbers</a></li>
63 <li id="menu-line-numbers"><a href="#">Toggle Line Numbers</a></li>
64 </ul>
64 </ul>
65 </li>
65 </li>
66 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Mode</a>
66 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Mode</a>
General Comments 0
You need to be logged in to leave comments. Login now