Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (11 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 1: | Rivi 1: | ||
<includeonly><script type="text/javascript"> | <includeonly><script type="text/javascript"> | ||
if ( !window.formenabler ) { | |||
window.formenabler = true; | |||
function <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() { | function <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() { | ||
if ( typeof window.jQuery == 'undefined' ) { | if ( typeof window.jQuery == 'undefined' ) { | ||
| Rivi 17: | Rivi 21: | ||
var label = jQuery( this ); | var label = jQuery( this ); | ||
var input = jQuery( this ).children( 'input' ).first(); | var input = jQuery( this ).children( 'input' ).first(); | ||
| Rivi 38: | Rivi 41: | ||
jQuery('fieldset:visible .JwLocCheckboxes').each(function() { | jQuery('fieldset:visible .JwLocCheckboxes').each(function() { | ||
var input = jQuery( this ).find('input').first(); | |||
var input = jQuery( this ). | 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 51: | ||
if (strArr[1] == val) { | if (strArr[1] == val) { | ||
old = | old = label.html(); | ||
newLabel = old.substr(0, old.lastIndexOf(";")) + strArr[2].split('_').join(' '); | newLabel = old.substr(0, old.lastIndexOf(";")) + strArr[2].split('_').join(' '); | ||
label.html( newLabel ); | |||
break; | break; | ||
} | } | ||
| Rivi 378: | Rivi 380: | ||
} | } | ||
} | |||
</script></includeonly> | </script></includeonly> | ||


