Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 11: | Rivi 11: | ||
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('.jwImageSelect').each(function() { | |||
var select = jQuery( this ); | |||
var classes = jQuery( this ).attr('class').split(' '); | |||
select.find( 'option' ).each( function() { | |||
console.log( jQuery( this ); ); | |||
}); | |||
}); | |||
} | |||
jQuery('label.JwLocRadiobuttons').each(function() { | jQuery('label.JwLocRadiobuttons').each(function() { | ||
var label = jQuery( this ); | var label = jQuery( this ); | ||
var input = jQuery( this ).children( 'input' ).first(); | var input = jQuery( this ).children( 'input' ).first(); | ||
| Rivi 75: | Rivi 48: | ||
}); | }); | ||
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 88: | Rivi 60: | ||
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 97: | Rivi 69: | ||
}); | }); | ||
jQuery('fieldset:visible .JwLocDropdowns > option').each(function() { | |||
var classes = jQuery( this ).parent().attr('class').split(' '); | var classes = jQuery( this ).parent().attr('class').split(' '); | ||


