Browse Source

JS Formatting

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

15
app/assets/javascripts/time_entries.js

@ -1,11 +1,10 @@
$(document).ready(function(){ $(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(); $("#start_time_id").timepicker();
$("#date_id").datepicker().on('changeDate', function(ev){ $("#end_time_id").timepicker();
$("#date_id").datepicker('hide');
});
$("#date_id").datepicker('setValue', currentdate);
$("#start_time_id").timepicker();
$("#end_time_id").timepicker();
}); });

Loading…
Cancel
Save