Ei muokkausyhteenvetoa Merkkaus: Palautettu |
Ei muokkausyhteenvetoa Merkkaus: Muokkaamalla palautettu |
||
| Rivi 1: | Rivi 1: | ||
<includeonly><script type="text/javascript"> | <includeonly><script type="text/javascript"> | ||
if ( !window.formenabler ) { | if ( !window.formenabler ) { | ||
window.formenabler = true; | window.formenabler = true; | ||
function <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() { | function <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() { | ||
| Rivi 18: | Rivi 16: | ||
function <!--{$id|default:FormEnabler|escape:'html'}-->_funcX() { | function <!--{$id|default:FormEnabler|escape:'html'}-->_funcX() { | ||
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 60: | Rivi 41: | ||
jQuery('fieldset:visible .JwLocCheckboxes').each(function() { | jQuery('fieldset:visible .JwLocCheckboxes').each(function() { | ||
var input = jQuery( this ). | |||
var input = jQuery( this ).children('input').first(); | |||
if ( input.length > 0 ) { | |||
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 70: | Rivi 54: | ||
if (strArr[1] == val) { | if (strArr[1] == val) { | ||
old = | old = input.parent().html(); | ||
newLabel = old.substr(0, old.lastIndexOf(";")) + strArr[2].split('_').join(' '); | newLabel = old.substr(0, old.lastIndexOf(";")) + strArr[2].split('_').join(' '); | ||
jQuery( this ).html(newLabel); | |||
break; | break; | ||
} | } | ||
} | } | ||
} | |||
}); | }); | ||
jQuery('fieldset:visible .JwLocDropdowns > option').each(function() { | jQuery('fieldset:visible .JwLocDropdowns > option').each(function() { | ||
| Rivi 248: | Rivi 231: | ||
Jw_FormFieldResizer(); | Jw_FormFieldResizer(); | ||
}, 3000); | }, 3000); | ||
/* | |||
jQuery('#sfForm').submit(function() { | |||
console.log('submit'); | |||
jQuery('fieldset:visible input').attr('disabled', false); | |||
jQuery('fieldset:visible select').attr('disabled', false); | |||
jQuery('fieldset:visible button').attr('disabled', false); | |||
}); | |||
*/ | |||
checkAgain(); | checkAgain(); | ||
| Rivi 400: | Rivi 390: | ||
} | } | ||
</script></includeonly> | </script></includeonly> | ||


