File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ,
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 },
Original file line number Diff line number Diff line change 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');
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 ( ) {
You can’t perform that action at this time.
0 commit comments