diff --git a/app/patients/edit/controller.js b/app/patients/edit/controller.js index 45e854b78b..5356cfe232 100644 --- a/app/patients/edit/controller.js +++ b/app/patients/edit/controller.js @@ -645,13 +645,9 @@ export default AbstractEditController.extend(BloodTypes, DiagnosisActions, Retur afterUpdate(record) { this._updateSequence(record).then(() => { - this.send('openModal', 'dialog', Ember.Object.create({ - title: this.get('i18n').t('patients.titles.savedPatient'), - message: this.get('i18n').t('patients.messages.savedPatient', record), - updateButtonAction: 'returnToPatient', - updateButtonText: this.get('i18n').t('patients.buttons.backToPatients'), - cancelButtonText: this.get('i18n').t('buttons.close') - })); + $('.message').show(); + $('.message').text(this.get('i18n').t('patients.messages.savedPatient', record)); + $(".message").delay(3000).fadeOut(100); }); } diff --git a/app/patients/edit/template.hbs b/app/patients/edit/template.hbs index 501e638d3a..559d1e42a7 100644 --- a/app/patients/edit/template.hbs +++ b/app/patients/edit/template.hbs @@ -464,4 +464,5 @@ {{/unless}} {{/em-form}} + {{/edit-panel}}