Ero sivun ”Widget:Form enabler X” versioiden välillä
Järvi-meriwikistä
Rivi 18: | Rivi 18: | ||
if ( !jQuery( this ).hasClass( 'jw-minimized' ) ) { | if ( !jQuery( this ).hasClass( 'jw-minimized' ) ) { | ||
jQuery( this ).addClass( 'jw-minimized' ); | jQuery( this ).addClass( 'jw-minimized' ); | ||
− | + | var out = ''; | |
jQuery( this ).closest( '.multipleTemplateInstanceTable' ).find( '.JwMinimizedValue' ).each( function() { | jQuery( this ).closest( '.multipleTemplateInstanceTable' ).find( '.JwMinimizedValue' ).each( function() { | ||
+ | if ( !!jQuery( this ).find( 'option:selected' ).text() ) { out += '<span class="JwMinimzedItem">' + jQuery( this ).find( 'option:selected' ).text() + '</span>'; } | ||
− | + | ||
− | |||
}); | }); | ||
− | + | ||
− | + | console.log( out ); | |
//jQuery( this ).html(); | //jQuery( this ).html(); | ||
} | } | ||
+ | |||
}); | }); | ||
}, 250); | }, 250); | ||
// minimized/ | // minimized/ | ||
+ | |||
+ | jQuery( '.mw-widgets-datetime-dateTimeInputWidget-field' ).each( function() { | ||
+ | if ( jQuery( this ).attr( 'size' ) == '2' ) { jQuery( this ).css( 'width', '3ch' ); } | ||
+ | }); | ||
+ | |||
// deal with radio buttons | // deal with radio buttons |