Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 9: | Rivi 9: | ||
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); | |||
} else { | } else { | ||
<!--{$id|default:FormEnabler|escape:'html'}-->_funcX(); | |||
<!--{$id|default:FormEnabler|escape:'html'}-->_func(); | |||
} | |||
} | } | ||
| Rivi 202: | Rivi 203: | ||
var input = jQuery( this ).children('input').first(); | var input = jQuery( this ).children('input').first(); | ||
if ( input.length > 0 ) { | if ( input.length > 0 ) { | ||
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; | |||
} | |||
} | } | ||
} | } | ||
}); | }); | ||
| Rivi 547: | Rivi 548: | ||
} | } | ||
</script></includeonly> | </script></includeonly> | ||


