Don't erase old publcations, so that the relations don't disappear.
[redakcja.git] / project / static / js / models.js
index e85ed5a..b5b9c54 100644 (file)
@@ -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);
     }