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