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 CareerAction + Course Career Title <%= languageDict.attributes.Actions %>
@@ -1465,27 +1465,27 @@

<%= languageDict.attributes.New_Career_Path %>

- <%for(var i =0; i <%}%> - +
- - - + +
Course CareerCourses ListAction + <%= languageDict.attributes.Course_Career %><%= languageDict.attributes.Courses_List %><%= languageDict.attributes.Actions %>
diff --git a/init_docs/Text.json b/init_docs/Text.json index 49b83b697..d4b4c4afd 100644 --- a/init_docs/Text.json +++ b/init_docs/Text.json @@ -76,7 +76,12 @@ "level": "Level(s)", "Level_Name":"Level Name", "Course_Career_Path_Name":"Course Career Path Name", + "Course_Career":"Course Career", + "Courses_List":"Courses List", + "Course_Career_Title":"Course Career Title", "List_of_Courses":"List of Courses", + "Beginners":"Beginners", + "Intermediate":"Intermediate", "Create_Course_Career":"Create Course Career", "publisher_attribution": "Publisher/Attribution", "link_to_license": "Link to License",