Code cleanup.
This commit is contained in:
parent
c440b401ea
commit
f886a1b9ff
1 changed files with 1 additions and 9 deletions
|
@ -1,11 +1,3 @@
|
||||||
$ = jQuery.sub()
|
|
||||||
Note = App.Note
|
|
||||||
|
|
||||||
$.fn.item = ->
|
|
||||||
elementID = $(@).data('id')
|
|
||||||
elementID or= $(@).parents('[data-id]').data('id')
|
|
||||||
Note.find(elementID)
|
|
||||||
|
|
||||||
class Index extends App.Controller
|
class Index extends App.Controller
|
||||||
# events:
|
# events:
|
||||||
# 'focusin [data-type=edit]': 'edit_in'
|
# 'focusin [data-type=edit]': 'edit_in'
|
||||||
|
@ -24,6 +16,6 @@ class Index extends App.Controller
|
||||||
render: ->
|
render: ->
|
||||||
@html App.view('profile')()
|
@html App.view('profile')()
|
||||||
|
|
||||||
App.Config.set( 'profile', Index, 'Routes' )
|
|
||||||
|
|
||||||
|
App.Config.set( 'profile', Index, 'Routes' )
|
||||||
App.Config.set( 'Profile', { prio: 1700, parent: '#current_user', name: 'Profile', target: '#profile', role: [ 'Agent', 'Customer' ] }, 'NavBarRight' )
|
App.Config.set( 'Profile', { prio: 1700, parent: '#current_user', name: 'Profile', target: '#profile', role: [ 'Agent', 'Customer' ] }, 'NavBarRight' )
|
||||||
|
|
Loading…
Reference in a new issue