##// END OF EJS Templates
Better way of saving through CodeMirror...
Better way of saving through CodeMirror This should support whatever keyboard shortcuts are configured for the 'save' command.

File last commit:

r17444:058b9270
r19020:0e93c51c
Show More
page.js
41 lines | 1.3 KiB | application/javascript | JavascriptLexer
Jonathan Frederic
Make page.html require.js friendly.
r17188 // Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
Jonathan Frederic
MWE,...
r17200 'jquery',
Jonathan Frederic
Make page.html require.js friendly.
r17188 ], function(IPython, $){
Matthias BUSSONNIER
"use strict" in most (if not all) our javascript...
r12103 "use strict";
Brian Granger
Refactoring templates and top level js/css organization.
r6192
var Page = function () {
this.bind_events();
};
Page.prototype.bind_events = function () {
};
Page.prototype.show = function () {
// The header and site divs start out hidden to prevent FLOUC.
// Main scripts should call this method after styling everything.
Brian Granger
Major refactoring of notebook....
r6193 this.show_header();
this.show_site();
};
Page.prototype.show_header = function () {
// The header and site divs start out hidden to prevent FLOUC.
// Main scripts should call this method after styling everything.
Matthias BUSSONNIER
movestyling from js to css + deprecation warnign
r17428 // TODO: selector are hardcoded, pass as constructor argument
Brian Granger
Refactoring templates and top level js/css organization.
r6192 $('div#header').css('display','block');
Brian Granger
Major refactoring of notebook....
r6193 };
Page.prototype.show_site = function () {
// The header and site divs start out hidden to prevent FLOUC.
// Main scripts should call this method after styling everything.
Matthias BUSSONNIER
movestyling from js to css + deprecation warnign
r17428 // TODO: selector are hardcoded, pass as constructor argument
Brian Granger
Refactoring templates and top level js/css organization.
r6192 $('div#site').css('display','block');
};
Jonathan Frederic
Make page.html require.js friendly.
r17188 // Register self in the global namespace for convenience.
Brian Granger
Refactoring templates and top level js/css organization.
r6192 IPython.Page = Page;
Jonathan Frederic
Return dicts instead of classes,...
r17201 return {'Page': Page};
Jonathan Frederic
Make page.html require.js friendly.
r17188 });