Utente:Clairos/common.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
codice |
in italianoContrassegna il primo come selezionato |
||
Riga 1:
/*
Abilita i "radio button"
*/
'use strict';
$( function () {
Line 18 ⟶ 21:
} );
if ( !selected ) {
//
selected = switcher;
$radio.prop( 'checked', true );
} else if ( label.getAttribute( 'data-switcher-default' ) !== null ) {
//
$radio.click();
} else {
//
$( switcher ).hide();
}
Line 32 ⟶ 35:
} );
if ( switchers.length > 1 ) {
$( '<label style="display:block">
$( '<input>' ).prop({ type: 'radio', name: radioName }).on( 'click', function () {
$( switchers ).show();
|