Reset section title in ember controller after adding

This commit is contained in:
2014-07-02 16:02:04 +02:00
parent 627e0e891d
commit 6a85aeb979
@@ -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