ECOM-4906 Add the program editor fix to allow creation of Micromasters programs (#13064)

This commit is contained in:
Simon Chen
2016-07-21 16:51:07 -04:00
committed by GitHub
parent 719edc7632
commit d27bec6111
4 changed files with 53 additions and 16 deletions

View File

@@ -3,9 +3,10 @@ define([
'jquery',
'js/programs/utils/api_config',
'js/programs/models/auto_auth_model',
'gettext',
'jquery.cookie'
],
function( Backbone, $, apiConfig, AutoAuthModel ) {
function( Backbone, $, apiConfig, AutoAuthModel, gettext ) {
'use strict';
return AutoAuthModel.extend({
@@ -23,8 +24,7 @@ define([
},
category: {
required: true,
// XSeries is currently the only valid Program type.
oneOf: ['xseries']
oneOf: ['xseries', 'micromasters']
},
organizations: 'validateOrganizations',
marketing_slug: {