Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 13: | Rivi 13: | ||
function <!--{$id|default:FormEnabler|escape:'html'}-->_funcX() { | function <!--{$id|default:FormEnabler|escape:'html'}-->_funcX() { | ||
console.log(' | console.log('xx'); | ||
jQuery( document ).on( 'click', '#pfForm', function( event ) { | jQuery( document ).on( 'click', '#pfForm', function( event ) { | ||
| Rivi 20: | Rivi 20: | ||
}); | }); | ||
}); | }); | ||
var timer = setInterval( function() { | var timer = setInterval( function() { | ||
| Rivi 61: | Rivi 53: | ||
//jQuery( document ).on( 'change', '.mw-widgets-datetime-dateTimeInputWidget-field', function() { console.log( 'change' ); } ); | //jQuery( document ).on( 'change', '.mw-widgets-datetime-dateTimeInputWidget-field', function() { console.log( 'change' ); } ); | ||
jQuery(' | jQuery('.JwLocRadiobuttons').each(function() { | ||
var input = jQuery( this ).children('input').first(); | |||
var classes = jQuery( this ).attr('class').split(' '); | |||
var val = input.val(); | |||
console.log(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; | |||
} | |||
} | |||
}); | |||
jQuery('.JwLocCheckboxes').each(function() { | |||
var input = jQuery( this ).children('input').first(); | var input = jQuery( this ).children('input').first(); | ||
| Rivi 82: | Rivi 95: | ||
}); | }); | ||
jQuery(' | jQuery('.JwLocDropdowns > option').each(function() { | ||
var classes = jQuery( this ).parent().attr('class').split(' '); | var classes = jQuery( this ).parent().attr('class').split(' '); | ||


