pass config to contentsManager

This commit is contained in:
Bussonnier Matthias 2014-12-16 16:11:39 +01:00
parent 449384e85f
commit 51f1cad6e4

View File

@ -60,6 +60,8 @@ require([
notebook_name : utils.get_body_data('notebookName')
};
var config_section = new configmod.ConfigSection('notebook', common_options);
config_section.load();
var page = new page.Page();
var pager = new pager.Pager('div#pager', {
events: events});
@ -72,10 +74,8 @@ require([
events: events,
keyboard_manager: keyboard_manager});
var contents = new contents.Contents($.extend({
events: events},
events: events, config:config_section},
common_options));
var config_section = new configmod.ConfigSection('notebook', common_options);
config_section.load();
var notebook = new notebook.Notebook('div#notebook', $.extend({
events: events,
keyboard_manager: keyboard_manager,