From 6a85aeb979104ee41f79467952fa0a98c4638d11 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Wed, 2 Jul 2014 16:02:04 +0200 Subject: [PATCH] Reset section title in ember controller after adding --- .../app/controllers/modal_add_section_controller.js.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/supplier/app/controllers/modal_add_section_controller.js.coffee b/app/assets/javascripts/supplier/app/controllers/modal_add_section_controller.js.coffee index bcd5296e..1aea00ff 100644 --- a/app/assets/javascripts/supplier/app/controllers/modal_add_section_controller.js.coffee +++ b/app/assets/javascripts/supplier/app/controllers/modal_add_section_controller.js.coffee @@ -1,6 +1,6 @@ Qsupplier.App.ModalAddSectionController = Ember.ObjectController.extend alert_message: null - section_name: '' + section_title: '' section_width: 15 section_height: 8 actions: @@ -35,5 +35,6 @@ Qsupplier.App.ModalAddSectionController = Ember.ObjectController.extend width: width height: height section.save().then (s)=> + @set 'section_title', '' @send 'closeModal' @transitionToRoute 'section', s.id