diff --git a/app/MyApp/app/collections/CourseCareerPath b/app/MyApp/app/collections/CourseCareerPath.js similarity index 92% rename from app/MyApp/app/collections/CourseCareerPath rename to app/MyApp/app/collections/CourseCareerPath.js index 23ddf3394..fb0ee19a7 100644 --- a/app/MyApp/app/collections/CourseCareerPath +++ b/app/MyApp/app/collections/CourseCareerPath.js @@ -1,9 +1,8 @@ $(function() { App.Collections.CourseCareerPath = Backbone.Collection.extend({ - url: function() { - if (this.CoursePathName != "" && this.MemberID != "") { + if (this.CoursePathName != "" && this.MemberID != "" && this.CoursePathName!= undefined && this.MemberID!= undefined ) { return App.Server + '/coursecareerpath/_design/bell/_view/GetCourseCareerByLevelNameMemberIds/?key=["' +this.CoursePathName + '","' +this.MemberID+ '"]&include_docs=true' } else { return App.Server + '/coursecareerpath/_all_docs?include_docs=true' @@ -22,8 +21,6 @@ $(function() { var type = model.get('Type') if (type) return type.toLowerCase() }, - - model: App.Models.CourseacreerPath }) }) diff --git a/app/MyApp/app/views/AddCourseCareer.js b/app/MyApp/app/views/AddCourseCareer.js index 59a59019c..16c6fb884 100644 --- a/app/MyApp/app/views/AddCourseCareer.js +++ b/app/MyApp/app/views/AddCourseCareer.js @@ -54,7 +54,7 @@ $(function() { this.vars.Courselist = arrcourses this.vars.Courseid = arrCourseIds this.vars.Course_Length = this.collection.models.length-1 - this.$el.html(_.template(this.template,this.vars)) + $el.html(_.template(this.template,this.vars)) }, }) diff --git a/app/MyApp/index.html b/app/MyApp/index.html index b68499b1e..240d39287 100644 --- a/app/MyApp/index.html +++ b/app/MyApp/index.html @@ -1451,8 +1451,8 @@
Course Career | -Action | + | Course Career Title | +<%= languageDict.attributes.Actions %> |
---|