##// END OF EJS Templates
Adjust cell background and number color after review with @minrk.
Adjust cell background and number color after review with @minrk.

File last commit:

r5025:0f5ba50a
r5064:fc0d8b19
Show More
header.js
41 lines | 1.3 KiB | application/javascript | JavascriptLexer
Fernando Perez
Add quick help button: broken ATM, style and binding aren't working....
r5023 //----------------------------------------------------------------------------
// Copyright (C) 2008-2011 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------
//============================================================================
// HeaderSection
//============================================================================
var IPython = (function (IPython) {
var HeaderSection = function (selector) {
this.selector = selector;
if (this.selector !== undefined) {
this.element = $(selector);
this.content = this.element.find('div.header');
Fernando Perez
Clean up accidentally introduced hard tabs in JS code.
r5025 this.style();
Fernando Perez
Add quick help button: broken ATM, style and binding aren't working....
r5023 this.bind_events();
}
};
HeaderSection.prototype.style = function () {
Fernando Perez
Clean up accidentally introduced hard tabs in JS code.
r5025 this.content.addClass('ui-helper-clearfix');
this.content.find('#quick_help').button();
Fernando Perez
Add quick help button: broken ATM, style and binding aren't working....
r5023 };
HeaderSection.prototype.bind_events = function () {
var that = this;
this.content.find('#quick_help').click(function () {
IPython.notebook.show_keyboard_shortcuts();
});
};
// Set module variables
IPython.HeaderSection = HeaderSection;
return IPython;
}(IPython));