From 347292c985d4a6d707b2cda4218a669d48166849 Mon Sep 17 00:00:00 2001 From: Michael Schmatz Date: Thu, 1 May 2014 17:36:49 -0700 Subject: [PATCH] Implemented save notes button --- app/templates/account/profile.jade | 1 + app/views/account/profile_view.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/templates/account/profile.jade b/app/templates/account/profile.jade index 3f9c57524..8f3af794e 100644 --- a/app/templates/account/profile.jade +++ b/app/templates/account/profile.jade @@ -94,6 +94,7 @@ block content - var notes = user.get('jobProfileNotes') || ''; if me.isAdmin() textarea#job-profile-notes!= notes + button.btn.btn-primary#save-notes-button Save Notes else div!= marked(notes) diff --git a/app/views/account/profile_view.coffee b/app/views/account/profile_view.coffee index e253b46d0..5f38125f2 100644 --- a/app/views/account/profile_view.coffee +++ b/app/views/account/profile_view.coffee @@ -9,7 +9,7 @@ module.exports = class ProfileView extends View events: 'click #toggle-job-profile-approved': 'toggleJobProfileApproved' - 'keyup #job-profile-notes': 'onJobProfileNotesChanged' + 'click save-notes-button': 'onJobProfileNotesChanged' 'click #contact-candidate': 'onContactCandidate' 'click #enter-espionage-mode': 'enterEspionageMode'