Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (58 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(); | |||
} | |||
} | } | ||
| Rivi 15: | Rivi 17: | ||
function <!--{$id|default:FormEnabler|escape:'html'}-->_funcX() { | 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 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 30: | Rivi 34: | ||
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; | |||
} | |||
} | |||
}); | |||
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; | break; | ||
} | } | ||
| Rivi 35: | Rivi 59: | ||
}); | }); | ||
jQuery('fieldset:visible .JwLocDropdowns > option').each(function() { | jQuery('fieldset:visible .JwLocDropdowns > option').each(function() { | ||
| Rivi 46: | Rivi 71: | ||
if (strArr[1] == val) { | if (strArr[1] == val) { | ||
str = strArr[2].split('_').join(' ') | str = strArr[2].split('_').join(' ').split('~').join('-'); | ||
jQuery( this ).html(str); | jQuery( this ).html(str); | ||
break; | break; | ||
| Rivi 205: | Rivi 229: | ||
Jw_FormFieldResizer(); | Jw_FormFieldResizer(); | ||
}, 3000); | }, 3000); | ||
checkAgain(); | checkAgain(); | ||
| Rivi 363: | Rivi 380: | ||
} | } | ||
} | |||
</script></includeonly> | </script></includeonly> | ||


