Push notifications was only ever setup to connect to Parse.com a service that has been discontinued. Since we haven't replaced the functionality for a few years now, remove this dead code. In cms/templates/js/course_info_update.underscore we're allowing content to not be escaped because this is by design according to the tests. Long term there should be a better fix for this but for now this is intended behavior.
26 lines
901 B
JavaScript
26 lines
901 B
JavaScript
define([
|
|
'jquery', 'js/collections/course_update', 'js/models/module_info',
|
|
'js/models/course_info', 'js/views/course_info_edit'
|
|
], function($, CourseUpdateCollection, ModuleInfoModel, CourseInfoModel, CourseInfoEditView) {
|
|
'use strict';
|
|
return function(updatesUrl, handoutsLocator, baseAssetUrl) {
|
|
var course_updates = new CourseUpdateCollection(),
|
|
course_handouts, editor;
|
|
|
|
course_updates.url = updatesUrl;
|
|
course_updates.fetch({reset: true});
|
|
course_handouts = new ModuleInfoModel({
|
|
id: handoutsLocator
|
|
});
|
|
editor = new CourseInfoEditView({
|
|
el: $('.main-wrapper'),
|
|
model: new CourseInfoModel({
|
|
updates: course_updates,
|
|
base_asset_url: baseAssetUrl,
|
|
handouts: course_handouts
|
|
})
|
|
});
|
|
editor.render();
|
|
};
|
|
});
|