Commit 8c3eb54082fc73198a61e0ae11893a733c15227b
- mouchak/static/js/editor.js 8 ----++++
- Diff rendering mode:
- inline
- side by side
mouchak/static/js/editor.js
9 | 'click .pagename .disp': 'showPage', | 9 | 'click .pagename .disp': 'showPage', |
---|---|---|---|
10 | 'click #addPage': 'addPage', | 10 | 'click #addPage': 'addPage', |
11 | 'click .pagename .remove': 'removePage', | 11 | 'click .pagename .remove': 'removePage', |
12 | |||
13 | 12 | 'click #menu-config': 'showMenu'//, | |
13 | //'click #footer-config': 'footerConfig' | ||
14 | }, | 14 | }, |
15 | initialize: function() { | 15 | initialize: function() { |
16 | _.bindAll(this); | 16 | _.bindAll(this); |
… | … | ||
25 | //console.log(menu); | 25 | //console.log(menu); |
26 | this.menuconfig = new M.types.model.menu(menu); | 26 | this.menuconfig = new M.types.model.menu(menu); |
27 | this.menuconfigview = new MenuConfigView({model: this.menuconfig}); | 27 | this.menuconfigview = new MenuConfigView({model: this.menuconfig}); |
28 | 28 | //this.footerconfigview = new FooterConfigView(); | |
29 | }, | 29 | }, |
30 | render: function() { | 30 | render: function() { |
31 | // append the page list | 31 | // append the page list |
… | … | ||
71 | this.menuconfigview.render(); | 71 | this.menuconfigview.render(); |
72 | }, | 72 | }, |
73 | footerConfig: function(event) { | 73 | footerConfig: function(event) { |
74 | 74 | //this.footerconfigview.render(); | |
75 | } | 75 | } |
76 | }); | 76 | }); |
77 | 77 |