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

Commit d4bec96

Browse files
Rupesh87lmmrssa
authored andcommitted
[#870] Updated filename
1 parent 4ee2cb4 commit d4bec96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/nation/app/Router.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3242,7 +3242,8 @@ $(function() {
32423242
var that = this;
32433243
var fullDate = new Date()
32443244
var twoDigitMonth = ((fullDate.getMonth().length+1) === 1)? (fullDate.getMonth()+1) :(fullDate.getMonth()+1);
3245-
var currentDate = fullDate.getDate() + "-" + twoDigitMonth + "-" + fullDate.getFullYear();;
3245+
var currentDate = fullDate.getFullYear() + "-" + twoDigitMonth + "-" + fullDate.getDate()
3246+
console.log(currentDate)
32463247
$.ajax({
32473248
url:'/surveyresponse/_design/bell/_view/surveyResBySurveyNo?include_docs=true',
32483249
type: 'GET',
@@ -3279,7 +3280,6 @@ $(function() {
32793280
async: false
32803281
});
32813282
var answerModels = answersColl.models;
3282-
console.log(answerModels.attributes)
32833283
var answersArray = [];
32843284
for(var k = 0 ; k < answerModels.length ; k++) {
32853285
answersArray.push(answerModels[k].attributes);
@@ -3324,7 +3324,8 @@ $(function() {
33243324
jsonObjectsData.sort(that.sortByProperty('QStatement'));
33253325
jsonObjectsData.sort(that.sortByProperty('QType'));
33263326
if(questionId == ''){
3327-
that.JSONToCSVConvertor(jsonObjectsData, surveyTitle+ '/' + surveyNo+ '/' + currentDate);
3327+
var surNo = "SurveyNo."+surveyNo
3328+
that.JSONToCSVConvertor(jsonObjectsData, surNo+ '/' + surveyTitle + '/' + currentDate);
33283329
}else{
33293330
that.JSONToCSVConvertor(jsonObjectsData, surveyTitle+ '/' + questionId);
33303331
}

0 commit comments

Comments
 (0)