X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ed513d6c11381d01e5c271fd0d12f49f5ae7c8f5..663d1c8f22c26b51c0c132388cde9d28fa6eeef0:/project/static/js/models.js 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); }