Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (68 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' ) { | ||
setTimeout( function(){ <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() }, 300); | setTimeout( function(){ <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() }, 300); | ||
} else { | } else { | ||
<!--{$id|default:FormEnabler|escape:'html'}-->_funcX(); | |||
} | |||
} | } | ||
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('label.JwLocRadiobuttons').each(function() { | |||
var label = jQuery( this ); | |||
var input = jQuery( this ).children( 'input' ).first(); | |||
var classes = jQuery( this ).attr('class').split(' '); | |||
var val = input.val(); | |||
for (var i in classes) { | |||
strArr = classes[i].split('-'); | |||
if (strArr[1] == val) { | |||
old = input.parent().html(); | |||
newLabel = old.substr(0, old.lastIndexOf(";")) + strArr[2].split('_').join(' '); | |||
jQuery( this ).html(newLabel); | |||
break; | |||
} | |||
} | |||
}); | |||
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 val = input.val(); | |||
for (var i in classes) { | |||
strArr = classes[i].split('-'); | |||
if (strArr[1] == val) { | |||
old = label.html(); | |||
newLabel = old.substr(0, old.lastIndexOf(";")) + strArr[2].split('_').join(' '); | |||
label.html( newLabel ); | |||
break; | |||
} | |||
} | |||
}); | |||
jQuery('fieldset:visible .JwLocDropdowns > option').each(function() { | |||
var classes = jQuery( this ).parent().attr('class').split(' '); | |||
var val = jQuery( this ).val(); | |||
for (var i in classes) { | |||
strArr = classes[i].split('-'); | |||
if (strArr[1] == val) { | |||
str = strArr[2].split('_').join(' ').split('~').join('-'); | |||
jQuery( this ).html(str); | |||
break; | |||
} | |||
} | |||
}); | |||
} | |||
function <!--{$id|default:FormEnabler|escape:'html'}-->_func() { | function <!--{$id|default:FormEnabler|escape:'html'}-->_func() { | ||
| Rivi 161: | Rivi 229: | ||
Jw_FormFieldResizer(); | Jw_FormFieldResizer(); | ||
}, 3000); | }, 3000); | ||
checkAgain(); | checkAgain(); | ||
| Rivi 319: | Rivi 380: | ||
} | } | ||
} | |||
</script></includeonly> | </script></includeonly> | ||


