Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 44: | Rivi 44: | ||
// deal with radio buttons | // deal with radio buttons | ||
jQuery( '.JwLocRadiobuttons' ).each(function() { | jQuery( 'label.JwLocRadiobuttons' ).each(function() { | ||
var input = jQuery( this ).children('input').first(); | var input = jQuery( this ).children('input').first(); | ||
| Rivi 56: | Rivi 56: | ||
if (strArr[1] == val) { | if (strArr[1] == val) { | ||
old = input.parent().html(); | //old = input.parent().html(); | ||
newLabel = old.substr(0, old.lastIndexOf(";")) + strArr[2].split('_').join(' '); | newLabel = old.substr(0, old.lastIndexOf(";")) + strArr[2].split('_').join(' '); | ||
jQuery( this ).html(newLabel); | //jQuery( this ).html(newLabel); | ||
input.text( newLabel ); | |||
break; | break; | ||
} | } | ||


