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 Qsupplier.App.ModalAddSectionController = Ember.ObjectController.extend
alert_message: null alert_message: null
section_name: '' section_title: ''
section_width: 15 section_width: 15
section_height: 8 section_height: 8
actions: actions:
@@ -35,5 +35,6 @@ Qsupplier.App.ModalAddSectionController = Ember.ObjectController.extend
width: width width: width
height: height height: height
section.save().then (s)=> section.save().then (s)=>
@set 'section_title', ''
@send 'closeModal' @send 'closeModal'
@transitionToRoute 'section', s.id @transitionToRoute 'section', s.id