Permalink
Browse files

updated declaration statements - best coding practice is one declarat…

…ion per line
  • Loading branch information...
rodsimpson committed Oct 26, 2012
1 parent f3efa12 commit 190cbdfa9bcc57b2d8ac0151de5b8b35ac5b4c6a
Showing with 6 additions and 6 deletions.
  1. +6 −6 js/app.js
View
@@ -161,10 +161,10 @@ $(document).ready(function () {
$("#new-username").removeClass('error');
$("#new-password").removeClass('error');
- var name = $("#new-name").val(),
- email = $("#new-email").val(),
- username = $("#new-username").val(),
- password = $("#new-password").val();
+ var name = $("#new-name").val();
+ var email = $("#new-email").val();
+ var username = $("#new-username").val();
+ var password = $("#new-password").val();
if (Usergrid.validation.validateName(name, function (){
$("#new-name").focus();
@@ -536,8 +536,8 @@ $(document).ready(function () {
// Takes a numeric date value (in seconds) and returns a string
// representing how long ago the date represents.
function prettyDate(createdDateValue) {
- var diff = (((new Date()).getTime() - createdDateValue) / 1000),
- day_diff = Math.floor(diff / 86400);
+ var diff = (((new Date()).getTime() - createdDateValue) / 1000)
+ var day_diff = Math.floor(diff / 86400);
if ( isNaN(day_diff) || day_diff < 0 || day_diff >= 31 )
return 'just now';

0 comments on commit 190cbdf

Please sign in to comment.