summaryrefslogtreecommitdiff
path: root/public/assets/js/lib
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-12 07:22:40 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-12 07:22:40 +0100
commit722761b667dd97b267479c9b9fa61fdc320e60ac (patch)
tree020553d4ee9fa92ae4c7ee936c6470edcee6fa9c /public/assets/js/lib
parent3af81b5dd49717e9dc646336df322d9432573ab7 (diff)
linking stuff
Diffstat (limited to 'public/assets/js/lib')
-rw-r--r--public/assets/js/lib/views/profile/profile.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/public/assets/js/lib/views/profile/profile.js b/public/assets/js/lib/views/profile/profile.js
index 34c8fba..d8bc535 100644
--- a/public/assets/js/lib/views/profile/profile.js
+++ b/public/assets/js/lib/views/profile/profile.js
@@ -34,13 +34,9 @@ var ProfileView = View.extend({
$table.append(t)
})
- var fields = "message".split(" ").map((key) => {
- if (! user[key]) return;
- var t = this.template.replace(/{{key}}/, "&nbsp;")
- .replace(/{{value}}/, '<a href="/mail/compose/' + username + '">send ' + username + ' a message</a>')
- $table.append(t)
- })
-
+ var t = this.template.replace(/{{key}}/, "&nbsp;")
+ .replace(/{{value}}/, '<a href="/mail/compose/' + username + '">send ' + username + ' a message</a>')
+ $table.append(t)
},
})