summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDetails.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-10-23 16:56:55 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-10-23 16:56:55 +0200
commit31b60d82fcae64a844805a2a76a0af25fb9c16c2 (patch)
treea82d7d6e6097f67215406ea47a11671292a4dc7b /client/components/cards/cardDetails.js
parentb3696e1e3b366770af8c41861b5cf996cdd2378a (diff)
downloadwekan-31b60d82fcae64a844805a2a76a0af25fb9c16c2.tar.gz
wekan-31b60d82fcae64a844805a2a76a0af25fb9c16c2.tar.bz2
wekan-31b60d82fcae64a844805a2a76a0af25fb9c16c2.zip
Upgrade Meteor to 1.2.1-rc4
This version includes a more complete selection of ES2015 polyfills that I started used across the code base, for instance by replacing `$.trim(str)` by `str.trim()`.
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r--client/components/cards/cardDetails.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index 2d2679ec..fa818c5a 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -75,8 +75,8 @@ BlazeComponent.extendComponent({
},
'submit .js-card-details-title'(evt) {
evt.preventDefault();
- const title = this.currentComponent().getValue();
- if ($.trim(title)) {
+ const title = this.currentComponent().getValue().trim();
+ if (title) {
this.data().setTitle(title);
}
},
@@ -106,7 +106,7 @@ BlazeComponent.extendComponent({
close(isReset = false) {
if (this.isOpen.get() && !isReset) {
- const draft = $.trim(this.getValue());
+ const draft = this.getValue().trim();
if (draft !== Cards.findOne(Session.get('currentCard')).description) {
UnsavedEdits.set(this._getUnsavedEditKey(), this.getValue());
}