From 7c972ebf6e6dd22ca3dfd78d07975491544a69b3 Mon Sep 17 00:00:00 2001 From: Steve Strassmann Date: Thu, 2 May 2013 09:29:27 -0400 Subject: [PATCH] fix date interpolation --- cms/static/js/base.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 3a51d797ec..49a70a87fd 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -845,8 +845,11 @@ function saveSetSectionScheduleDate(e) { data: JSON.stringify({ 'id': id, 'metadata': {'start': start}}) }).success(function () { var $thisSection = $('.courseware-section[data-id="' + id + '"]'); - var format = gettext('Will Release: %(date)s at $(time)s UTC'); - var willReleaseAt = interpolate(format, [input_date, input_time], true); + var format = gettext('Will Release: %(date)s at %(time)s UTC'); + var willReleaseAt = interpolate(format, + {'date': input_date, + 'time': input_time}, + true); $thisSection.find('.section-published-date').html( '' + willReleaseAt + '' + '