summaryrefslogtreecommitdiffstats
path: root/client/components/users/userProfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/users/userProfile.js')
-rw-r--r--client/components/users/userProfile.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/client/components/users/userProfile.js b/client/components/users/userProfile.js
deleted file mode 100644
index 040abed0..00000000
--- a/client/components/users/userProfile.js
+++ /dev/null
@@ -1,31 +0,0 @@
-Template.profileEditForm.events({
- 'click .js-edit-profile': function() {
- Session.set('ProfileEditForm', true);
- },
- 'click .js-cancel-edit-profile': function() {
- Session.set('ProfileEditForm', false);
- },
- 'submit #ProfileEditForm': function(evt, t) {
- var name = t.find('#name').value;
- var bio = t.find('#bio').value;
-
- // trim and update
- if ($.trim(name)) {
- Users.update(this.profile()._id, {
- $set: {
- 'profile.name': name,
- 'profile.bio': bio
- }
- }, function() {
-
- // update complete close profileEditForm
- Session.set('ProfileEditForm', false);
- });
- }
- evt.preventDefault();
- }
-});
-
-Template.memberName.events({
- 'click .js-show-mem-menu': Popup.open('user')
-});