diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-06-08 11:47:06 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-06-09 15:57:45 +0200 |
commit | 46cc69153482a6138e1057ece9cec836dd95451e (patch) | |
tree | 79a22f159d20dfca8af4b50877ed40a335233763 /client/components/cards/events.js | |
parent | 98d7278d08dabc9e1da5dcd9a9bb968ab369520e (diff) | |
download | wekan-46cc69153482a6138e1057ece9cec836dd95451e.tar.gz wekan-46cc69153482a6138e1057ece9cec836dd95451e.tar.bz2 wekan-46cc69153482a6138e1057ece9cec836dd95451e.zip |
Re-factor the avatar system and support avatar uploads
The user is now able to upload an avatar, and pick one in a list.
This functionality should eventually be abstracted in a community
package but we still need to work on a great public API. We rely on
collectionFS to manage uploaded avatars. We also removed
bengott:avatar which was trying to solve the wrong problem (namely
displaying the avatar, which is as simple as displaying an image), and
not a avatar system as it should be.
Gravatar support is coming (back) soon. We may also want to have a
list of default fun avatars the user can choose instead of uploading
its own one.
Diffstat (limited to 'client/components/cards/events.js')
-rw-r--r-- | client/components/cards/events.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/cards/events.js b/client/components/cards/events.js index 21d628df..2363f4de 100644 --- a/client/components/cards/events.js +++ b/client/components/cards/events.js @@ -134,7 +134,7 @@ Template.createLabelPopup.events({ 'submit .create-label': function(evt, tpl) { var name = tpl.$('#labelName').val().trim(); var boardId = Session.get('currentBoard'); - var selectLabelDom = tpl.$('.js-palette-select:not(.hide)').get(0); + var selectLabelDom = tpl.$('.js-palette-select').get(0); var selectLabel = Blaze.getData(selectLabelDom); Boards.update(boardId, { $push: { @@ -166,7 +166,7 @@ Template.editLabelPopup.events({ var name = tpl.$('#labelName').val().trim(); var boardId = Session.get('currentBoard'); var getLabel = Utils.getLabelIndex(boardId, this._id); - var selectLabelDom = tpl.$('.js-palette-select:not(.hide)').get(0); + var selectLabelDom = tpl.$('.js-palette-select').get(0); var selectLabel = Blaze.getData(selectLabelDom); var $set = {}; |