From 6f29a1a02a654d5fbf9eeab3cb4e840a14abce73 Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Sun, 14 Aug 2016 21:48:42 -0400 Subject: [PATCH] Made hour optional, fixed avatar display bug --- hourglass/client/profile/profile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hourglass/client/profile/profile.js b/hourglass/client/profile/profile.js index 83711b3..a6a4a33 100644 --- a/hourglass/client/profile/profile.js +++ b/hourglass/client/profile/profile.js @@ -95,7 +95,7 @@ Template.profile.helpers({ avatar() { var dim = window.innerWidth * 1600 / 1920 * 0.16; if (Meteor.user().profile.avatar !== undefined) { - var pic = Meteor.user().profile.avatar + ".png"; + var pic = Meteor.user().profile.avatar;; } else { var pic = "Avatars/" + (Math.floor(Math.random() * (11 - 1)) + 1).toString(); + ".png"; currentprofile = Meteor.user().profile; @@ -499,6 +499,7 @@ function getCreateFormData() { var stop; var form = document.getElementsByClassName("creInput"); for (var i = 0; i < form.length; i++) { + if(i === 1) continue; if (form[i].value === "") { form[i].focus(); form[i].placeholder = "Missing field";