This repository was archived by the owner on Aug 21, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments