diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-12-03 04:00:55 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-12-03 04:00:55 +0200 |
commit | 7c403053e364ffe21d64edd961a55d0402582c07 (patch) | |
tree | 77f06a7afdb099c162a29c1bf9909b0761d85ea7 /client/components | |
parent | c52233cacf798e1eb0ad8dbbfe20354443b562e3 (diff) | |
download | wekan-7c403053e364ffe21d64edd961a55d0402582c07.tar.gz wekan-7c403053e364ffe21d64edd961a55d0402582c07.tar.bz2 wekan-7c403053e364ffe21d64edd961a55d0402582c07.zip |
Fix lint errors.
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/cards/checklists.js | 4 | ||||
-rwxr-xr-x | client/components/main/editor.js | 2 | ||||
-rw-r--r-- | client/components/settings/settingBody.js | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/client/components/cards/checklists.js b/client/components/cards/checklists.js index d3a946f0..5c0e3d2e 100644 --- a/client/components/cards/checklists.js +++ b/client/components/cards/checklists.js @@ -181,8 +181,8 @@ BlazeComponent.extendComponent({ Template.checklistDeleteDialog.onCreated(() => { const $cardDetails = this.$('.card-details'); this.scrollState = { position: $cardDetails.scrollTop(), //save current scroll position - top: false, //required for smooth scroll animation - }; + top: false, //required for smooth scroll animation + }; //Callback's purpose is to only prevent scrolling after animation is complete $cardDetails.animate({ scrollTop: 0 }, 500, () => { this.scrollState.top = true; }); diff --git a/client/components/main/editor.js b/client/components/main/editor.js index 5987b772..5f384ece 100755 --- a/client/components/main/editor.js +++ b/client/components/main/editor.js @@ -6,7 +6,7 @@ Template.editor.onRendered(() => { $textarea.escapeableTextComplete([ // Emoji { - match: /\B:([\-+\w]*)$/, + match: /\B:([-+\w]*)$/, search(term, callback) { callback(Emoji.values.map((emoji) => { return emoji.includes(term) ? emoji : null; diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js index fabcc70c..8c1ff1c7 100644 --- a/client/components/settings/settingBody.js +++ b/client/components/settings/settingBody.js @@ -116,7 +116,7 @@ BlazeComponent.extendComponent({ const from = this.checkField('#mail-server-from'); const tls = $('#mail-server-tls.is-checked').length > 0; Settings.update(Settings.findOne()._id, {$set:{'mailServer.host':host, 'mailServer.port': port, 'mailServer.username': username, - 'mailServer.password': password, 'mailServer.enableTLS': tls, 'mailServer.from': from}}); + 'mailServer.password': password, 'mailServer.enableTLS': tls, 'mailServer.from': from}}); } catch (e) { return; } finally { |