course_update.js 392 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
define(["backbone", "jquery", "jquery.ui"], function(Backbone, $) {
    // course update -- biggest kludge here is the lack of a real id to map updates to originals
    var CourseUpdate = Backbone.Model.extend({
        defaults: {
            "date" : $.datepicker.formatDate('MM d, yy', new Date()),
            "content" : ""
        }
    });
    return CourseUpdate;
}); // end define()