Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 38: | Rivi 38: | ||
jQuery('fieldset:visible .JwLocCheckboxes').each(function() { | jQuery('fieldset:visible .JwLocCheckboxes').each(function() { | ||
var input = jQuery( this ).find('input').first(); | |||
var label = jQuery( this ).children('t').first(); | |||
var classes = jQuery( this ).attr('class').split(' '); | var classes = jQuery( this ).attr('class').split(' '); | ||
var val = | var val = input.val(); | ||
for (var i in classes) { | for (var i in classes) { | ||
| Rivi 49: | Rivi 48: | ||
if (strArr[1] == val) { | if (strArr[1] == val) { | ||
old = input.parent().html(); | //old = input.parent().html(); | ||
console.log( old ); | //console.log( old ); | ||
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); | ||
console.log( label ); | |||
break; | break; | ||
} | } | ||


