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 731c52e commit b14251a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 33 deletions.
46 changes: 23 additions & 23 deletions app/MyApp/app/views/AddCourseCareer.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,33 +106,33 @@ $(function() {
})
location.reload();
} else {
$('#LCourse option:selected').each(function(){
if ($(this).length) {
selectedCourseId.push($(this).val());
selectedCourseName.push($(this).text());
}
});
$('#LCareer option:selected').each(function(){
$('#LCourse option:selected').each(function(){
if ($(this).length) {
selectedCourseId.push($(this).val());
selectedCourseName.push($(this).text());
}
});
$('#LCareer option:selected').each(function(){
if ($(this).length) {
selectedCareerIds.push($(this).val());
}
});
var courseCareerTitle = $('#careerPath').val()
var savecoursecareer = new App.Models.CoursecareerPath()
savecoursecareer.set('CoursePathName',courseCareerTitle);
savecoursecareer.set('Courses',selectedCourseName);
savecoursecareer.set('CourseIds',selectedCourseId);
savecoursecareer.set('MemberID',$.cookie('Member._id'));
savecoursecareer.set('requiredCareerPathIds',selectedCareerIds);
savecoursecareer.save(null, {
success: function(response){
location.reload();
},
error: function(status) {
console.log(status)
console.log("Not Saved")
}
})
var courseCareerTitle = $('#careerPath').val()
var savecoursecareer = new App.Models.CoursecareerPath()
savecoursecareer.set('CoursePathName',courseCareerTitle);
savecoursecareer.set('Courses',selectedCourseName);
savecoursecareer.set('CourseIds',selectedCourseId);
savecoursecareer.set('MemberID',$.cookie('Member._id'));
savecoursecareer.set('requiredCareerPathIds',selectedCareerIds);
savecoursecareer.save(null, {
success: function(response){
location.reload();
},
error: function(status) {
console.log(status)
console.log("Not Saved")
}
})
}
},

Expand Down
5 changes: 1 addition & 4 deletions app/MyApp/app/views/ManageCourseCareer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ $(function() {
},
},

initialize: function() {

},

initialize: function() {},
saveMultipelCareer:function(){
var selectedCareerIds = []
$('#LCourse option:selected').each(function(){
Expand Down
5 changes: 0 additions & 5 deletions app/MyApp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,12 @@
<script src="app/views/CreditsRow.js"></script> <!-- app/views.js -->
<script src="app/views/CourseLearnersList.js"></script> <!-- app/views.js -->
<script src="app/views/ViewTest.js"></script> <!-- app/views.js -->

<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 -->


<!-- javaScript -->

<script src="indexFile.js"></script>
Expand Down Expand Up @@ -1483,15 +1481,12 @@ <h4 style="width:25em;word-wrap:break-word;">
<td>
<a role="button" id="careerEdit" data-id = <%= careerList[i]._id %> class='course btn btn-success'><%=languageDict.attributes.EditLabel%></a>
<a role="button" data-id="<%= careerList[i]['_id'] %>" class='destroy btn btn-danger' id='Delete'><%=languageDict.attributes.DeleteLabel%></a>
<!-- <a role="button" class='btn btn-info' id="ManageCareer" onclick = "document.location.href='#courseCareerPath/manage/<%= careerList[i].CoursePathName %>/<%= careerList[i]._id %>'""><%=languageDict.attributes.View_Details%></a> -->
</td>
</tr>
<% } %>
</tbody>
</table>

</div>

</script>

<script type="text/template" id="template-careerPathManage">
Expand Down
2 changes: 1 addition & 1 deletion databases/coursecareerpath.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var couchapp = require('couchapp'),
path = require('path');
path = require('path');

ddoc = {
_id: '_design/bell'
Expand Down

0 comments on commit b14251a

Please sign in to comment.