fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hmm..
[redakcja.git]
/
project
/
static
/
js
/
models.js
diff --git
a/project/static/js/models.js
b/project/static/js/models.js
index
c333a97
..
e3fb0ce
100644
(file)
--- a/
project/static/js/models.js
+++ b/
project/static/js/models.js
@@
-1,5
+1,5
@@
/*globals Editor fileId SplitView PanelContainerView EditorView FlashView messageCenter*/
/*globals Editor fileId SplitView PanelContainerView EditorView FlashView messageCenter*/
-var documentsUrl = '/api/documents/';
+var documentsUrl = '/
platforma/
api/documents/';
Editor.Model = Editor.Object.extend({
Editor.Model = Editor.Object.extend({
@@
-10,7
+10,7
@@
Editor.Model = Editor.Object.extend({
Editor.ToolbarButtonsModel = Editor.Model.extend({
_className: 'Editor.ToolbarButtonsModel',
Editor.ToolbarButtonsModel = Editor.Model.extend({
_className: 'Editor.ToolbarButtonsModel',
- serverURL: '/api/toolbar/buttons',
+ serverURL: '/
platforma/
api/toolbar/buttons',
buttons: {},
init: function() {
buttons: {},
init: function() {
@@
-56,8
+56,8
@@
Editor.XMLModel = Editor.Model.extend({
this.addObserver(this, 'data', this.dataChanged.bind(this));
},
this.addObserver(this, 'data', this.dataChanged.bind(this));
},
- load: function() {
- if (this.get('state') == 'empty') {
+ load: function(
force
) {
+ if (
force ||
this.get('state') == 'empty') {
this.set('state', 'loading');
$.ajax({
url: this.serverURL,
this.set('state', 'loading');
$.ajax({
url: this.serverURL,
@@
-162,8
+162,8
@@
Editor.HTMLModel = Editor.Model.extend({
this.serverURL = serverURL;
},
this.serverURL = serverURL;
},
- load: function() {
- if (this.get('state') == 'empty') {
+ load: function(
force
) {
+ if (
force ||
this.get('state') == 'empty') {
this.set('state', 'loading');
$.ajax({
url: this.serverURL,
this.set('state', 'loading');
$.ajax({
url: this.serverURL,
@@
-215,8
+215,8
@@
Editor.ImageGalleryModel = Editor.Model.extend({
this.pages = [];
},
this.pages = [];
},
- load: function() {
- if (this.get('state') == 'empty') {
+ load: function(
force
) {
+ if (
force ||
this.get('state') == 'empty') {
this.set('state', 'loading');
$.ajax({
url: this.serverURL,
this.set('state', 'loading');
$.ajax({
url: this.serverURL,