fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dodanie fabfile pozwalające na wdrożenie nowej wersji projektu na stigma (przy użyciu...
[redakcja.git]
/
project
/
static
/
js
/
models.js
diff --git
a/project/static/js/models.js
b/project/static/js/models.js
index
b32f192
..
0b00c7c
100644
(file)
--- a/
project/static/js/models.js
+++ b/
project/static/js/models.js
@@
-6,8
+6,7
@@
Editor.Model = Editor.Object.extend({
Editor.ToolbarButtonsModel = Editor.Model.extend({
Editor.ToolbarButtonsModel = Editor.Model.extend({
- className: 'Editor.ToolbarButtonsModel',
- serverURL: '/api/toolbar/buttons',
+ className: 'Editor.ToolbarButtonsModel',
buttons: {},
init: function() {
buttons: {},
init: function() {
@@
-17,7
+16,7
@@
Editor.ToolbarButtonsModel = Editor.Model.extend({
load: function() {
if (!this.get('buttons').length) {
$.ajax({
load: function() {
if (!this.get('buttons').length) {
$.ajax({
- url: t
his.serverURL
,
+ url: t
oolbarUrl
,
dataType: 'json',
success: this.loadSucceeded.bind(this)
});
dataType: 'json',
success: this.loadSucceeded.bind(this)
});
@@
-404,13
+403,15
@@
var leftPanelView, rightPanelContainer, doc;
$(function()
{
documentsUrl = $('#api-base-url').text() + '/';
$(function()
{
documentsUrl = $('#api-base-url').text() + '/';
-
Editor.ToolbarButtonsModel.serverURL
= $('#api-toolbar-url').text();
+
toolbarUrl
= $('#api-toolbar-url').text();
doc = new Editor.DocumentModel();
doc = new Editor.DocumentModel();
- var editor = new EditorView('#body-wrap', doc);
+ var editor = new EditorView('#body-wrap', doc);
editor.freeze();
editor.freeze();
+
var flashView = new FlashView('#flashview', messageCenter);
var splitView = new SplitView('#splitview', doc);
var flashView = new FlashView('#flashview', messageCenter);
var splitView = new SplitView('#splitview', doc);
+
leftPanelView = new PanelContainerView('#left-panel-container', doc);
leftPanelView = new PanelContainerView('#left-panel-container', doc);
- rightPanelContainer = new PanelContainerView('#right-panel-container', doc);
+ rightPanelContainer = new PanelContainerView('#right-panel-container', doc);
});
});