Specced supplier main board jumber
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user