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

Commit

Permalink
[#870] Updated filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupesh87 authored and lmmrssa committed Oct 30, 2017
1 parent 4ee2cb4 commit d4bec96
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/nation/app/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -3242,7 +3242,8 @@ $(function() {
var that = this;
var fullDate = new Date()
var twoDigitMonth = ((fullDate.getMonth().length+1) === 1)? (fullDate.getMonth()+1) :(fullDate.getMonth()+1);
var currentDate = fullDate.getDate() + "-" + twoDigitMonth + "-" + fullDate.getFullYear();;
var currentDate = fullDate.getFullYear() + "-" + twoDigitMonth + "-" + fullDate.getDate()
console.log(currentDate)
$.ajax({
url:'/surveyresponse/_design/bell/_view/surveyResBySurveyNo?include_docs=true',
type: 'GET',
Expand Down Expand Up @@ -3279,7 +3280,6 @@ $(function() {
async: false
});
var answerModels = answersColl.models;
console.log(answerModels.attributes)
var answersArray = [];
for(var k = 0 ; k < answerModels.length ; k++) {
answersArray.push(answerModels[k].attributes);
Expand Down Expand Up @@ -3324,7 +3324,8 @@ $(function() {
jsonObjectsData.sort(that.sortByProperty('QStatement'));
jsonObjectsData.sort(that.sortByProperty('QType'));
if(questionId == ''){
that.JSONToCSVConvertor(jsonObjectsData, surveyTitle+ '/' + surveyNo+ '/' + currentDate);
var surNo = "SurveyNo."+surveyNo
that.JSONToCSVConvertor(jsonObjectsData, surNo+ '/' + surveyTitle + '/' + currentDate);
}else{
that.JSONToCSVConvertor(jsonObjectsData, surveyTitle+ '/' + questionId);
}
Expand Down

0 comments on commit d4bec96

Please sign in to comment.