Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (26 välissä olevaa versiota 2 käyttäjän tekeminä 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 11: | Rivi 15: | ||
setTimeout( function(){ <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() }, 300); | setTimeout( function(){ <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() }, 300); | ||
function <!--{$id|default:FormEnabler|escape:'html'}-->_funcX() { | |||
jQuery | jQuery('label.JwLocRadiobuttons').each(function() { | ||
var label = jQuery( this ); | |||
var input = jQuery( this ).children( 'input' ).first(); | |||
var classes = jQuery( this ).attr('class').split(' '); | var classes = jQuery( this ).attr('class').split(' '); | ||
var val = input.val(); | var val = input.val(); | ||
for (var i in classes) { | for (var i in classes) { | ||
| Rivi 79: | Rivi 33: | ||
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); | ||
break; | break; | ||
} | } | ||
| Rivi 85: | Rivi 39: | ||
}); | }); | ||
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 100: | 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 109: | Rivi 60: | ||
}); | }); | ||
jQuery('fieldset:visible .JwLocDropdowns > option').each(function() { | |||
var classes = jQuery( this ).parent().attr('class').split(' '); | var classes = jQuery( this ).parent().attr('class').split(' '); | ||
| Rivi 278: | Rivi 229: | ||
Jw_FormFieldResizer(); | Jw_FormFieldResizer(); | ||
}, 3000); | }, 3000); | ||
checkAgain(); | checkAgain(); | ||
| Rivi 436: | Rivi 380: | ||
} | } | ||
} | |||
</script></includeonly> | </script></includeonly> | ||


