From dbcc5414cf99f54c570d27f066b0bb0066da70b3 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 23 Aug 2014 14:37:01 +0200 Subject: [PATCH] Improved displayNameLong() - same behaviour like displayName(). --- .../javascripts/app/models/_application_model.js.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/app/models/_application_model.js.coffee b/app/assets/javascripts/app/models/_application_model.js.coffee index 99efdf986..a67494ef1 100644 --- a/app/assets/javascripts/app/models/_application_model.js.coffee +++ b/app/assets/javascripts/app/models/_application_model.js.coffee @@ -57,6 +57,10 @@ class App.Model extends Spine.Model else if @department name = "#{name} (#{@department})" return name + if @email + return @email + if @title + return @title return '???' @validate: ( data = {} ) ->