/*globals Editor fileId SplitView PanelContainerView EditorView FlashView messageCenter*/
-var documentsUrl = '/api/documents/';
+var documentsUrl = '/platforma/api/documents/';
Editor.Model = Editor.Object.extend({
Editor.ToolbarButtonsModel = Editor.Model.extend({
_className: 'Editor.ToolbarButtonsModel',
- serverURL: '/api/toolbar/buttons',
+ serverURL: '/platforma/api/toolbar/buttons',
buttons: {},
init: function() {
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.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.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,