diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-10-14 23:40:00 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-10-14 23:40:27 +0200 |
commit | 43de3b8a01b001ec665294fa8bd75f5d01df7df0 (patch) | |
tree | ac9fe20b4442076ee594a6b809b3f6857a86d783 /client | |
parent | ab761f11868ce5af80d2d54e173827dc043fef02 (diff) | |
download | wekan-43de3b8a01b001ec665294fa8bd75f5d01df7df0.tar.gz wekan-43de3b8a01b001ec665294fa8bd75f5d01df7df0.tar.bz2 wekan-43de3b8a01b001ec665294fa8bd75f5d01df7df0.zip |
Prevent dublicated empty labels of the same color
Diffstat (limited to 'client')
-rw-r--r-- | client/components/cards/labels.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/cards/labels.js b/client/components/cards/labels.js index d2ee0140..6a411561 100644 --- a/client/components/cards/labels.js +++ b/client/components/cards/labels.js @@ -69,12 +69,12 @@ Template.formLabel.events({ Template.createLabelPopup.events({ // Create the new label 'submit .create-label'(evt, tpl) { + evt.preventDefault(); const board = Boards.findOne(Session.get('currentBoard')); const name = tpl.$('#labelName').val().trim(); const color = Blaze.getData(tpl.find('.fa-check')).color; board.addLabel(name, color); Popup.back(); - evt.preventDefault(); }, }); |