From 1905f5aeaf6b640aad00ba10163c1e1afd1e9ecc Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Thu, 18 Oct 2012 10:16:40 -0400 Subject: [PATCH] fix variable names in date/time input parsing utility --- cms/static/js/base.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 9af77964fc..6c59661fb8 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -180,12 +180,12 @@ function onSectionReordered() { function getEdxTimeFromDateTimeVals(date_val, time_val, format) { var edxTimeStr = null; - if (input_date != '') { - if (input_time == '') - input_time = '00:00'; + if (date_val != '') { + if (time_val == '') + time_val = '00:00'; // Note, we are using date.js utility which has better parsing abilities than the built in JS date parsing - date = Date.parse(input_date+" "+input_time); + date = Date.parse(date_val+" "+time_val); if (format == null) format = 'yyyy-MM-ddTHH:mm';