From f886a1b9ffae051e3509bd66b64bfb6de038d63e Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 20 Jan 2013 02:26:46 +0100 Subject: [PATCH] Code cleanup. --- .../javascripts/app/controllers/profile.js.coffee | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/assets/javascripts/app/controllers/profile.js.coffee b/app/assets/javascripts/app/controllers/profile.js.coffee index 0324406b8..e6cc60cd8 100644 --- a/app/assets/javascripts/app/controllers/profile.js.coffee +++ b/app/assets/javascripts/app/controllers/profile.js.coffee @@ -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 # events: # 'focusin [data-type=edit]': 'edit_in' @@ -24,6 +16,6 @@ class Index extends App.Controller render: -> @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' )