mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
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()`.
This commit is contained in:
parent
b3696e1e3b
commit
31b60d82fc
12 changed files with 50 additions and 48 deletions
|
|
@ -18,9 +18,9 @@ Template.memberMenuPopup.events({
|
|||
Template.editProfilePopup.events({
|
||||
submit(evt, tpl) {
|
||||
evt.preventDefault();
|
||||
const fullname = $.trim(tpl.find('.js-profile-fullname').value);
|
||||
const username = $.trim(tpl.find('.js-profile-username').value);
|
||||
const initials = $.trim(tpl.find('.js-profile-initials').value);
|
||||
const fullname = tpl.find('.js-profile-fullname').value.trim();
|
||||
const username = tpl.find('.js-profile-username').value.trim();
|
||||
const initials = tpl.find('.js-profile-initials').value.trim();
|
||||
Users.update(Meteor.userId(), {$set: {
|
||||
'profile.fullname': fullname,
|
||||
'profile.initials': initials,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue