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

840 course career path(connects #840) #882

Open
wants to merge 39 commits into
base: dev
Choose a base branch
from
Open

Conversation

Pr0chin
Copy link
Contributor

@Pr0chin Pr0chin commented Jun 19, 2017

No description provided.

console.log("before")
return a > b ? 1 : a < b ? -1 : 0;
},
/*comparator: function(model) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this code if not used

}
})
console.log(career)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra line

},
},

initialize: function() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this function if nothing is in it.

this.vars.Courseid = arrCourseIds
this.vars.Course_Length = this.collection.models.length-1
this.$el.html(_.template(this.template,this.vars))

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra line

$(function(){
App.Views.CareersPathTable = Backbone.View.extend({
addOne: function(model) {
//console.log(model)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove code if not used

this.renderView(model)
// }
},
renderView: function(model) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove function and code if not used

@@ -0,0 +1,24 @@
var couchapp = require('couchapp'),
path = require('path');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix indentation

@@ -0,0 +1,31 @@
var couchapp = require('couchapp'),
path = require('path');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix indentation

Copy link
Member

@lmmrssa lmmrssa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lot of extra line and unused function. Please clean those

</table>

</div>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra line

@Pr0chin Pr0chin closed this Jul 7, 2017
@Pr0chin Pr0chin reopened this Jul 7, 2017
@Pr0chin Pr0chin closed this Jul 7, 2017
@lmmrssa lmmrssa deleted the 840-Course-Career-Path branch October 2, 2017 05:52
@Pr0chin Pr0chin restored the 840-Course-Career-Path branch October 6, 2017 04:59
@Pr0chin Pr0chin reopened this Oct 6, 2017
CareerPath.fetch({
async:false
});
console.log(CareerPath)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think comments are not needed here .

courseCareer.set('requiredCareerPathIds',selectedCareerIds);
courseCareer.save(null, {
success: function(response){
location.reload();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation need to be fix.

})
location.reload();
} else {
$('#LCourse option:selected').each(function(){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation problem

}
},


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line should be remove.

},

initialize: function() {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line should be remove.

},

initialize: function() {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

@@ -304,6 +307,9 @@

<script src="app/views/AnswerReview.js"></script> <!-- app/views.js -->
<script src="app/views/PasswordReset.js"></script> <!-- app/views.js -->
<script src="app/views/ManageCourseCareer.js"></script> <!-- app/views.js -->
<script src="app/views/CareerDetailView.js"></script> <!-- app/views.js -->
<!-- <script src="app/views/CareerPathTable.js"></script> --><!-- app/views.js -->


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

<% } %>
</tbody>
</table>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

</table>

</div>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

</tr>
<%}%>
</table>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants