decide.nolog.cz/app/controllers/modal/save-retry.js

13 lines
260 B
JavaScript
Raw Normal View History

2016-01-28 23:48:14 +01:00
import Ember from 'ember';
export default Ember.ObjectController.extend({
actions: {
2016-01-28 23:48:14 +01:00
saveRetry() {
this.get('model.record').save().then(function() {
// retry war erfolgreich
Ember.$('.modal').modal('hide');
});
}
}
2016-01-28 23:48:14 +01:00
});