X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ed513d6c11381d01e5c271fd0d12f49f5ae7c8f5..f1b70c0cd342b6769df2326ffc122add67ccd917:/project/static/js/models.js?ds=sidebyside diff --git a/project/static/js/models.js b/project/static/js/models.js index e85ed5a0..b5b9c541 100644 --- a/project/static/js/models.js +++ b/project/static/js/models.js @@ -82,7 +82,7 @@ Editor.XMLModel = Editor.Model.extend({ $.ajax({ url: this.serverURL, - type: 'put', + type: 'post', dataType: 'json', data: payload, success: this.updatingSucceeded.bind(this), @@ -209,12 +209,12 @@ Editor.ImageGalleryModel = Editor.Model.extend({ alert('erroneous state:', this.get('state')); } - $.log('galleries:', data); + console.log('galleries:', data); if (data.length === 0) { this.set('data', []); } else { - $.log('dupa'); + console.log('dupa'); this.set('data', data[0].pages); }