Skip to content

Commit b6d0a86

Browse files
committed
econsent text
1 parent 8ac450e commit b6d0a86

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

config.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
},
119119
{
120120
"key": "multilingual-project-encoding",
121-
"name": "PDF Encodings",
121+
"name": "PDF Encodings/Translations",
122122
"required": false,
123123
"type": "sub_settings",
124124
"repeatable": true,
@@ -143,6 +143,13 @@
143143
"required": false,
144144
"type": "text",
145145
"repeatable": false
146+
},
147+
{
148+
"key": "econsent-checkbox-text",
149+
"name": "EConsent Checkbox Text",
150+
"required": false,
151+
"type": "notes",
152+
"repeatable": false
146153
}
147154
]
148155
},

js/multilingual_survey.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
}
171171
}
172172

173+
//change iframe source
173174
$('iframe').each(function(){
174175
if($(this).attr('src').indexOf('compact=1') > -1){
175176
//console.log(pdf_url + '&langIndex=' + id + '&display=1');
@@ -178,6 +179,19 @@
178179
$(this).parent().attr('data', pdf_url + '&langIndex=' + id + '&display=1');
179180
}
180181
});
182+
183+
//change econsent checkbox text
184+
if($('#econsent_confirm_checkbox_label').is(':visible')){
185+
for(id in settings['encoding-language']['value']){
186+
if(settings['encoding-language']['value'][id] == lang){
187+
break;
188+
}
189+
}
190+
191+
if(settings['econsent-checkbox-text']['value'][id]){
192+
$('#econsent_confirm_checkbox_label').html('<input type="checkbox" id="econsent_confirm_checkbox"> ' + settings['econsent-checkbox-text']['value'][id]);
193+
}
194+
}
181195
}
182196

183197
function loadSettings(){

0 commit comments

Comments
 (0)