Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (2 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 48: | Rivi 51: | ||
if (strArr[1] == val) { | if (strArr[1] == val) { | ||
old = label.html(); | |||
newLabel = old.substr(0, old.lastIndexOf(";")) + strArr[2].split('_').join(' '); | |||
label.html( newLabel ); | |||
break; | break; | ||
} | } | ||
| Rivi 379: | Rivi 380: | ||
} | } | ||
} | |||
</script></includeonly> | </script></includeonly> | ||


