Skip to content
Snippets Groups Projects
Commit 9dae6935 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-310] Merging test into staging

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/staging@1508 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent c8e5fdec
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ Drupal.webform.datepicker = function(context) {
var startDate = $calendar[0].className.replace(/.*webform-calendar-start-(\d{4}-\d{2}-\d{2}).*/, '$1').split('-');
var endDate = $calendar[0].className.replace(/.*webform-calendar-end-(\d{4}-\d{2}-\d{2}).*/, '$1').split('-');
var firstDay = $calendar[0].className.replace(/.*webform-calendar-day-(\d).*/, '$1');
console.log(startDate);
// Convert date strings into actual Date objects.
startDate = new Date(startDate[0], startDate[1] - 1, startDate[2]);
endDate = new Date(endDate[0], endDate[1] - 1, endDate[2]);
......@@ -36,8 +36,6 @@ console.log(startDate);
var startYear = startDate.getFullYear();
var endYear = endDate.getFullYear();
console.log(startDate);
console.log(endDate);
// Set up the jQuery datepicker element.
$calendar.datepicker({
dateFormat: 'yy-mm-dd',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment