From 2d65ebb45faefb49d7c8347811a31a3d525014c4 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 19 Apr 2014 16:22:54 -0400 Subject: [PATCH] JS Formatting --- app/assets/javascripts/time_entries.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/time_entries.js b/app/assets/javascripts/time_entries.js index 9f3e5ef..25743e4 100644 --- a/app/assets/javascripts/time_entries.js +++ b/app/assets/javascripts/time_entries.js @@ -1,11 +1,10 @@ $(document).ready(function(){ + var currentdate = new Date(); + $("#date_id").datepicker().on('changeDate', function(ev){ + $("#date_id").datepicker('hide'); + }); + $("#date_id").datepicker('setValue', currentdate); -var currentdate = new Date(); -$("#date_id").datepicker().on('changeDate', function(ev){ - $("#date_id").datepicker('hide'); -}); -$("#date_id").datepicker('setValue', currentdate); - -$("#start_time_id").timepicker(); -$("#end_time_id").timepicker(); + $("#start_time_id").timepicker(); + $("#end_time_id").timepicker(); });