Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinkc authored Mar 8, 2018
1 parent d013a9e commit fd4110c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions js/multilingual_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,16 @@
var survey_translations = {"surveytitle":"Survey Title","surveyinstructions":"Survey Instructions","surveyacknowledgment":"Survey Response"}
var others = '';
for(id in tags){
if(tags[id].includes('@p1000lang')){
if(tags[id].indexOf('@p1000lang') > -1){
questions = JSON.parse(tags[id].replace('@p1000lang','',tags[id]));
}
else if(tags[id].includes('@p1000answers')){
else if(tags[id].indexOf('@p1000answers') > -1){
answers = JSON.parse(tags[id].replace('@p1000answers','',tags[id]));
}
else if(tags[id].includes('@p1000errors')){
else if(tags[id].indexOf('@p1000errors') > -1){
errors = JSON.parse(tags[id].replace('@p1000errors','',tags[id]));
}
else if(tags[id].includes('@p1000surveytext')){
else if(tags[id].indexOf('@p1000surveytext') > -1){
survey_text = JSON.parse(tags[id].replace('@p1000surveytext','',tags[id]));
}
else{
Expand Down Expand Up @@ -224,10 +224,10 @@
var tags = data.split('\n');

for(id in tags){
if(tags[id].includes('@p1000lang')){
if(tags[id].indexOf('@p1000lang') > -1){
questions = JSON.parse(tags[id].replace('@p1000lang','',tags[id]));
}
else if(tags[id].includes('@p1000answers')){
else if(tags[id].indexOf('@p1000answers') > -1){
answers = JSON.parse(tags[id].replace('@p1000answers','',tags[id]));
}
}
Expand Down
4 changes: 2 additions & 2 deletions js/multilingual_survey_complete.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(){
var ajax_url = 'REDCAP_AJAX_URL&NOAUTH';
var ajax_url = 'REDCAP_AJAX_URL';
var translations = {};
var languages = {};
var lang = getCookie('p1000Lang');
Expand Down Expand Up @@ -85,4 +85,4 @@

return "-1";
}
})();
})();

0 comments on commit fd4110c

Please sign in to comment.