@@ -630,12 +630,16 @@ var Multilingual = (function(){
630630 for ( id2 in translations [ 'answers' ] [ id ] [ 'text' ] ) {
631631 $ ( '.ec' ) . each ( function ( ) {
632632 var tmp = $ ( this ) . parent ( ) . attr ( 'comps' ) . split ( ',' ) ;
633- $ ( this ) . show ( ) ;
633+ if ( $ ( this ) . parent ( ) . parent ( ) . hasClass ( 'enhancedchoice' ) ) {
634+ $ ( this ) . parent ( ) . show ( ) ;
635+ }
634636 if ( tmp [ 0 ] == id && tmp [ 2 ] == id2 ) {
635637 $ ( this ) . html ( ' ' + translations [ 'answers' ] [ id ] [ 'text' ] [ id2 ] ) ;
636638 $ ( this ) . data ( 'lang' , lang ) ;
637639 } else if ( settings [ 'hide-answers-without-translation-survey' ] && settings [ 'hide-answers-without-translation-survey' ] [ 'value' ] && $ ( this ) . data ( 'lang' ) !== lang ) {
638- $ ( this ) . hide ( ) ;
640+ if ( $ ( this ) . parent ( ) . parent ( ) . hasClass ( 'enhancedchoice' ) ) {
641+ $ ( this ) . parent ( ) . hide ( ) ;
642+ }
639643 }
640644 } ) ;
641645 }
@@ -644,7 +648,10 @@ var Multilingual = (function(){
644648 var id2 ;
645649 for ( id2 in translations [ 'answers' ] [ id ] [ 'text' ] ) {
646650 $ ( '#' + id + '-tr .choicevert' ) . each ( function ( ) {
647- //$(this).show();
651+ if ( ! $ ( this ) . hasClass ( 'hidden' ) ) {
652+ $ ( this ) . show ( ) ;
653+ }
654+
648655 if ( $ ( this ) . find ( '[name="__chk__' + id + '_RC_' + id2 + '"]' ) . length ) {
649656 $ ( this ) . contents ( ) . last ( ) . html ( ' ' + translations [ 'answers' ] [ id ] [ 'text' ] [ id2 ] ) ;
650657 $ ( this ) . data ( 'lang' , lang ) ;
@@ -657,12 +664,19 @@ var Multilingual = (function(){
657664 for ( id2 in translations [ 'answers' ] [ id ] [ 'text' ] ) {
658665 $ ( '.ec' ) . each ( function ( ) {
659666 var tmp = $ ( this ) . parent ( ) . attr ( 'comps' ) . split ( ',' ) ;
660- //$(this).show();
667+
668+ if ( $ ( this ) . parent ( ) . parent ( ) . hasClass ( 'enhancedchoice' ) ) {
669+ $ ( this ) . parent ( ) . show ( ) ;
670+ }
671+ // console.log($(this).parent());
672+
661673 if ( tmp [ 0 ] == id && tmp [ 2 ] == id2 ) {
662674 $ ( this ) . html ( translations [ 'answers' ] [ id ] [ 'text' ] [ id2 ] ) ;
663675 $ ( this ) . data ( 'lang' , lang ) ;
664676 } else if ( settings [ 'hide-answers-without-translation-survey' ] && settings [ 'hide-answers-without-translation-survey' ] [ 'value' ] && $ ( this ) . data ( 'lang' ) !== lang ) {
665- $ ( this ) . hide ( ) ;
677+ if ( $ ( this ) . parent ( ) . parent ( ) . hasClass ( 'enhancedchoice' ) ) {
678+ $ ( this ) . parent ( ) . hide ( ) ;
679+ }
666680 }
667681 } ) ;
668682 }
0 commit comments