Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (10 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 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() { | |||
console.log( '12432' ); | |||
jQuery('.jwImageSelect').each(function() { | |||
var select = jQuery( this ); | |||
var classes = jQuery( this ).attr('class').split(' '); | |||
console.log( 'asdf' ); | |||
select.find( 'option' ).each( function() { | |||
console.log( jQuery( this ) ); | |||
}); | }); | ||
} | console.log( 'asdf' ); | ||
}); | |||
jQuery('.JwLocRadiobuttons').each(function() { | jQuery('label.JwLocRadiobuttons').each(function() { | ||
var label = jQuery( this ); | |||
var input = jQuery( this ).children( 'input' ).first(); | 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 74: | Rivi 58: | ||
}); | }); | ||
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 classes = jQuery( this ).attr('class').split(' '); | ||
var val = | var val = input.val(); | ||
for (var i in classes) { | for (var i in classes) { | ||
| Rivi 87: | Rivi 70: | ||
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 96: | Rivi 79: | ||
}); | }); | ||
jQuery('fieldset:visible .JwLocDropdowns > option').each(function() { | |||
var classes = jQuery( this ).parent().attr('class').split(' '); | var classes = jQuery( this ).parent().attr('class').split(' '); | ||
| Rivi 415: | Rivi 399: | ||
} | } | ||
} | |||
</script></includeonly> | </script></includeonly> | ||


