addressed comments from pull request

This commit is contained in:
Steve Strassmann
2013-04-23 10:07:51 -04:00
parent 91bee1a966
commit 6f10348836
8 changed files with 131 additions and 304 deletions

View File

@@ -826,11 +826,14 @@ function saveSetSectionScheduleDate(e) {
data: JSON.stringify({ 'id': id, 'metadata': {'start': start}})
}).success(function () {
var $thisSection = $('.courseware-section[data-id="' + id + '"]');
var format = gettext('<strong>Will Release:</strong> %(date)s at $(time)s UTC');
var willReleaseAt = interpolate(format, [input_date, input_time], true);
$thisSection.find('.section-published-date').html(
'<span class="published-status"><strong>' + gettext('Will Release:') +
'</strong> ' + input_date + ' at ' + input_time +
' UTC</span><a href="#" class="edit-button" data-date="' + input_date +
'" data-time="' + input_time + '" data-id="' + id + '">' +
'<span class="published-status">' + willReleaseAt + '</span>' +
'<a href="#" class="edit-button" ' +
'" data-date="' + input_date +
'" data-time="' + input_time +
'" data-id="' + id + '">' +
gettext('Edit') + '</a>');
$thisSection.find('.section-published-date').animate({
'background-color': 'rgb(182,37,104)'