From 59256b60033bd62563b89beb26c39d87d5e8034c Mon Sep 17 00:00:00 2001 From: Raju Chaudhary Date: Mon, 15 Jan 2018 14:11:49 +0545 Subject: [PATCH] [#840] indentation fixed --- app/MyApp/app/Router.js | 9 --------- app/MyApp/app/views/AddCourseCareer.js | 4 +--- app/MyApp/app/views/CourseCareerPath.js | 10 ++++------ app/MyApp/app/views/CourseSearch.js | 1 - app/MyApp/index.html | 1 - 5 files changed, 5 insertions(+), 20 deletions(-) diff --git a/app/MyApp/app/Router.js b/app/MyApp/app/Router.js index 3a86e93ab..9dc0cf988 100644 --- a/app/MyApp/app/Router.js +++ b/app/MyApp/app/Router.js @@ -7342,15 +7342,6 @@ $(function() { CareerPath.fetch({ async:false }); - console.log(CareerPath) - // for (var i = 0; i < CareerPath.attributes.CourseIds.length; i++){ - // var course = new App.Models.Course({ - // _id: CareerPath.attributes.CourseIds[i] - // }) - // course.fetch({ - // async:false - // }) - // } var careerView = new App.Views.CareerDetailView({ model: CareerPath }) diff --git a/app/MyApp/app/views/AddCourseCareer.js b/app/MyApp/app/views/AddCourseCareer.js index 3835b21a8..7bace5682 100644 --- a/app/MyApp/app/views/AddCourseCareer.js +++ b/app/MyApp/app/views/AddCourseCareer.js @@ -98,7 +98,7 @@ $(function() { courseCareer.set('requiredCareerPathIds',selectedCareerIds); courseCareer.save(null, { success: function(response){ - location.reload(); + location.reload(); }, error: function() { console.log("Not Saved") @@ -136,7 +136,6 @@ $(function() { } }, - render: function() { var careerlength; var arrcourses = [] @@ -154,7 +153,6 @@ $(function() { courseCareers.fetch({ async:false }); - this.vars.careerList = []; for(var i = 0; i < (courseCareers.length); i++) { if(courseCareers.models[i].attributes._id !== "_design/bell"){ diff --git a/app/MyApp/app/views/CourseCareerPath.js b/app/MyApp/app/views/CourseCareerPath.js index 6641edb19..66302f0a2 100644 --- a/app/MyApp/app/views/CourseCareerPath.js +++ b/app/MyApp/app/views/CourseCareerPath.js @@ -7,14 +7,12 @@ $(function() { searchCoursePathName: "", events: { "click .Search": function(e) { - this.renderTable($('#searchText').val().toLowerCase()) - alert('Hi') + this.renderTable($('#searchText').val().toLowerCase()) }, }, - - initialize: function() { - - }, + + initialize: function() {}, + render: function() { this.$el.html(_.template(this.template,this.vars)) }, diff --git a/app/MyApp/app/views/CourseSearch.js b/app/MyApp/app/views/CourseSearch.js index f5151ed7b..cb2785ba9 100644 --- a/app/MyApp/app/views/CourseSearch.js +++ b/app/MyApp/app/views/CourseSearch.js @@ -12,7 +12,6 @@ $(function () { enablenext = 0 }, render: function () { - console.log(searchText) var obj = this if (searchText != "") { this.fetchRecords() diff --git a/app/MyApp/index.html b/app/MyApp/index.html index 5840947eb..29f51ee41 100644 --- a/app/MyApp/index.html +++ b/app/MyApp/index.html @@ -1543,7 +1543,6 @@

CareerDetailView

<%}%> -