@@ -43,7 +43,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
43
43
return ;
44
44
}
45
45
46
- model . save ( this . get ( 'saveOptions' ) ) . catch ( function ( errors ) {
46
+ model . save ( ) . catch ( function ( errors ) {
47
47
self . showErrors ( errors ) ;
48
48
self . set ( 'selectedAuthor' , author ) ;
49
49
model . rollback ( ) ;
@@ -65,8 +65,6 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
65
65
. extend ( Ember . PromiseProxyMixin )
66
66
. create ( deferred ) ;
67
67
} ) ,
68
- //Changes in the PSM are too minor to warrant NProgress firing
69
- saveOptions : { disableNProgress : true } ,
70
68
/**
71
69
* The placeholder is the published date of the post,
72
70
* or the current date if the pubdate has not been set.
@@ -192,7 +190,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
192
190
return ;
193
191
}
194
192
195
- this . get ( 'model' ) . save ( this . get ( 'saveOptions' ) ) . catch ( function ( errors ) {
193
+ this . get ( 'model' ) . save ( ) . catch ( function ( errors ) {
196
194
self . showErrors ( errors ) ;
197
195
self . get ( 'model' ) . rollback ( ) ;
198
196
} ) ;
@@ -271,12 +269,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
271
269
return ;
272
270
}
273
271
274
- return self . get ( 'model' ) . save ( self . get ( 'saveOptions' ) ) ;
275
- } ) . then ( function ( changed ) {
276
- if ( changed ) {
277
- self . showSuccess ( 'Permalink successfully changed to <strong>' +
278
- self . get ( 'slug' ) + '</strong>.' ) ;
279
- }
272
+ return self . get ( 'model' ) . save ( ) ;
280
273
} ) . catch ( function ( errors ) {
281
274
self . showErrors ( errors ) ;
282
275
self . get ( 'model' ) . rollback ( ) ;
@@ -331,7 +324,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
331
324
return ;
332
325
}
333
326
334
- this . get ( 'model' ) . save ( this . get ( 'saveOptions' ) ) . catch ( function ( errors ) {
327
+ this . get ( 'model' ) . save ( ) . catch ( function ( errors ) {
335
328
self . showErrors ( errors ) ;
336
329
self . get ( 'model' ) . rollback ( ) ;
337
330
} ) ;
@@ -354,7 +347,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
354
347
return ;
355
348
}
356
349
357
- this . get ( 'model' ) . save ( this . get ( 'saveOptions' ) ) . catch ( function ( errors ) {
350
+ this . get ( 'model' ) . save ( ) . catch ( function ( errors ) {
358
351
self . showErrors ( errors ) ;
359
352
} ) ;
360
353
} ,
@@ -376,7 +369,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
376
369
return ;
377
370
}
378
371
379
- this . get ( 'model' ) . save ( this . get ( 'saveOptions' ) ) . catch ( function ( errors ) {
372
+ this . get ( 'model' ) . save ( ) . catch ( function ( errors ) {
380
373
self . showErrors ( errors ) ;
381
374
} ) ;
382
375
} ,
@@ -390,7 +383,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
390
383
return ;
391
384
}
392
385
393
- this . get ( 'model' ) . save ( this . get ( 'saveOptions' ) ) . catch ( function ( errors ) {
386
+ this . get ( 'model' ) . save ( ) . catch ( function ( errors ) {
394
387
self . showErrors ( errors ) ;
395
388
self . get ( 'model' ) . rollback ( ) ;
396
389
} ) ;
@@ -405,7 +398,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
405
398
return ;
406
399
}
407
400
408
- this . get ( 'model' ) . save ( this . get ( 'saveOptions' ) ) . catch ( function ( errors ) {
401
+ this . get ( 'model' ) . save ( ) . catch ( function ( errors ) {
409
402
self . showErrors ( errors ) ;
410
403
self . get ( 'model' ) . rollback ( ) ;
411
404
} ) ;
0 commit comments