Show More
@@ -32,6 +32,7 b' $(document).ready(function () {' | |||
|
32 | 32 | IPython.pager = new IPython.Pager('div#pager', 'div#pager_splitter'); |
|
33 | 33 | IPython.left_panel = new IPython.LeftPanel('div#left_panel', 'div#left_panel_splitter'); |
|
34 | 34 | IPython.save_widget = new IPython.SaveWidget('span#save_widget'); |
|
35 | IPython.quick_help = new IPython.QuickHelp('span#quick_help_area'); | |
|
35 | 36 | IPython.print_widget = new IPython.PrintWidget('span#print_widget'); |
|
36 | 37 | IPython.notebook = new IPython.Notebook('div#notebook'); |
|
37 | 38 | IPython.kernel_status_widget = new IPython.KernelStatusWidget('#kernel_status'); |
@@ -6,35 +6,33 b'' | |||
|
6 | 6 | //---------------------------------------------------------------------------- |
|
7 | 7 | |
|
8 | 8 | //============================================================================ |
|
9 | // HeaderSection | |
|
9 | // QuickHelp button | |
|
10 | 10 | //============================================================================ |
|
11 | 11 | |
|
12 | 12 | var IPython = (function (IPython) { |
|
13 | 13 | |
|
14 |
var |
|
|
14 | var QuickHelp = function (selector) { | |
|
15 | 15 | this.selector = selector; |
|
16 | 16 | if (this.selector !== undefined) { |
|
17 | 17 | this.element = $(selector); |
|
18 | this.content = this.element.find('div.header'); | |
|
19 | 18 | this.style(); |
|
20 | 19 | this.bind_events(); |
|
21 | 20 | } |
|
22 | 21 | }; |
|
23 | 22 | |
|
24 |
|
|
|
25 | this.content.addClass('ui-helper-clearfix'); | |
|
26 | this.content.find('#quick_help').button(); | |
|
23 | QuickHelp.prototype.style = function () { | |
|
24 | this.element.find('button#quick_help').button(); | |
|
27 | 25 | }; |
|
28 | 26 | |
|
29 |
|
|
|
27 | QuickHelp.prototype.bind_events = function () { | |
|
30 | 28 | var that = this; |
|
31 |
this. |
|
|
29 | this.element.find("button#quick_help").click(function () { | |
|
32 | 30 | IPython.notebook.show_keyboard_shortcuts(); |
|
33 | 31 | }); |
|
34 | 32 | }; |
|
35 | 33 | |
|
36 | 34 | // Set module variables |
|
37 | IPython.HeaderSection = HeaderSection; | |
|
35 | IPython.QuickHelp = QuickHelp; | |
|
38 | 36 | |
|
39 | 37 | return IPython; |
|
40 | 38 |
@@ -266,7 +266,7 b'' | |||
|
266 | 266 | <script src="static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script> |
|
267 | 267 | <script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script> |
|
268 | 268 | <script src="static/js/savewidget.js" type="text/javascript" charset="utf-8"></script> |
|
269 |
<script src="static/js/ |
|
|
269 | <script src="static/js/quickhelp.js" type="text/javascript" charset="utf-8"></script> | |
|
270 | 270 | <script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script> |
|
271 | 271 | <script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script> |
|
272 | 272 | <script src="static/js/printwidget.js" type="text/javascript" charset="utf-8"></script> |
General Comments 0
You need to be logged in to leave comments.
Login now