Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

Commit

Permalink
[#840] indentation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
razu9861 committed Jan 15, 2018
1 parent e94449c commit 59256b6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
9 changes: 0 additions & 9 deletions app/MyApp/app/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down
4 changes: 1 addition & 3 deletions app/MyApp/app/views/AddCourseCareer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -136,7 +136,6 @@ $(function() {
}
},


render: function() {
var careerlength;
var arrcourses = []
Expand All @@ -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"){
Expand Down
10 changes: 4 additions & 6 deletions app/MyApp/app/views/CourseCareerPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
},
Expand Down
1 change: 0 additions & 1 deletion app/MyApp/app/views/CourseSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ $(function () {
enablenext = 0
},
render: function () {
console.log(searchText)
var obj = this
if (searchText != "") {
this.fetchRecords()
Expand Down
1 change: 0 additions & 1 deletion app/MyApp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,6 @@ <h3>CareerDetailView</h3>
</tr>
<%}%>
</table>

</script>

<script type="text/html" id="template-courseLevelsTable">
Expand Down

0 comments on commit 59256b6

Please sign in to comment.