initial change set. add org autocomplete
added unit tests and fixed JS tests added bok choy tests fixed broken botchoy tests fixed course discovery broken test removed monkey patch at class level changes after feedback from matte
This commit is contained in:
@@ -11,6 +11,14 @@ define(["jquery", "gettext", "common/js/components/utils/view_utils", "js/views/
|
||||
|
||||
CreateUtilsFactory.call(this, selectors, classes, keyLengthViolationMessage, keyFieldSelectors, nonEmptyCheckFieldSelectors);
|
||||
|
||||
this.setupOrgAutocomplete = function(){
|
||||
$.getJSON('/organizations', function (data) {
|
||||
$(selectors.org).autocomplete({
|
||||
source: data
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
this.create = function (courseInfo, errorHandler) {
|
||||
$.postJSON(
|
||||
'/course/',
|
||||
|
||||
Reference in New Issue
Block a user