$.ajax({
url: this.serverURL,
- type: 'put',
+ type: 'post',
dataType: 'json',
data: payload,
success: this.updatingSucceeded.bind(this),
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);
}