Ero sivun ”Widget:Form enabler X” versioiden välillä
Järvi-meriwikistä
Rivi 12: | Rivi 12: | ||
function <!--{$id|default:FormEnabler|escape:'html'}-->_funcX() { | function <!--{$id|default:FormEnabler|escape:'html'}-->_funcX() { | ||
− | console.log('x'); | + | console.log('not x'); |
+ | |||
+ | |||
+ | jQuery( document ).on( 'submit', '#sfForm', 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); | ||
+ | }); | ||
+ | |||
+ | |||
jQuery('fieldset:visible .JwLocCheckboxes').each(function() { | jQuery('fieldset:visible .JwLocCheckboxes').each(function() { | ||
Rivi 202: | Rivi 212: | ||
Jw_FormFieldResizer(); | Jw_FormFieldResizer(); | ||
}, 3000); | }, 3000); | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
checkAgain(); | checkAgain(); |