Browse Source

JS Formatting

denney-fix-saving-dates
Jason Denney 11 years ago
parent
commit
2d65ebb45f
  1. 13
      app/assets/javascripts/time_entries.js

13
app/assets/javascripts/time_entries.js

@ -1,11 +1,10 @@
$(document).ready(function(){ $(document).ready(function(){
var currentdate = new Date();
var currentdate = new Date(); $("#date_id").datepicker().on('changeDate', function(ev){
$("#date_id").datepicker().on('changeDate', function(ev){
$("#date_id").datepicker('hide'); $("#date_id").datepicker('hide');
}); });
$("#date_id").datepicker('setValue', currentdate); $("#date_id").datepicker('setValue', currentdate);
$("#start_time_id").timepicker(); $("#start_time_id").timepicker();
$("#end_time_id").timepicker(); $("#end_time_id").timepicker();
}); });

Loading…
Cancel
Save