Specced supplier main board jumber

This commit is contained in:
2013-12-15 10:53:37 +01:00
parent a0d4312238
commit 65aa99cc1a
5 changed files with 32 additions and 1 deletions
@@ -5,6 +5,7 @@ Qsupplier.App.Router.reopen
rootURL: '/supplier'
Qsupplier.App.Router.map ->
@route '/', queryParams: ['section_id']
@resource 'sections', ->
@resource 'section', path: ':section_id'
#@resource 'lists', queryParams: ['state']
@@ -1,6 +1,11 @@
Qsupplier.App.HomeSectionJumperView = Ember.View.extend
tagName: 'a'
classNames: ['main-board-section-jumper']
attributeBindings: ['href']
href: (-> Routes.suppliers_section_path(@get('controller.active_section_id') || 'nothing')).property('controller.active_section_id')
#href: (-> Routes.suppliers_section_path(@get('controller.active_section_id') || 'nothing')).property('controller.active_section_id')
href: '#'
isVisible: (-> !!@get('controller.active_section_id') ).property('controller.active_section_id')
template: Ember.Handlebars.compile('=>')
click: (e)->
e.preventDefault()
@get('controller').transitionToRoute 'section', @get('controller.active_section_id')