Utente:Jalo/monobook.js/test: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 3 060:
}
 
function init(questo) {
var u = mw.usability;
$j(thisquesto).find( '[rel]' ).each( function() {
$j(thisquesto).text( u.getMsg( $j(thisquesto).attr( 'rel' ) ) );
});
// Set tabindexes on form fields
$j.wikiEditor.modules.dialogs.fn.setTabindexes( $j(thisquesto).find( 'input' ).not( '[tabindex]' ) );
}
 
function open(questo) {
$j(thisquesto).data( 'offset', 0 );
$j( '#wikieditor-toolbar-argomento' ).focus();
if ( !( $j(thisquesto).data( 'onetimeonlystuff' ) ) ) {
$j(thisquesto).data( 'onetimeonlystuff', true );
// Execute the action associated with the first button
// when the user presses Enter
$j(thisquesto).closest( '.ui-dialog' ).keypress( function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
var button = $j(thisquesto).data( 'dialogaction' ) || $j(thisquesto).find( 'button:first' );
button.click();
e.preventDefault();
Riga 3 085:
// Make tabbing to a button and pressing
// Enter do what people expect
$j(thisquesto).closest( '.ui-dialog' ).find( 'button' ).focus( function() {
$j(thisquesto).closest( '.ui-dialog' ).data( 'dialogaction', thisquesto );
});
}
var dialog = $j(thisquesto).closest( '.ui-dialog' );
var that = thisquesto;
var context = $j(thisquesto).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
Riga 3 109:
}
 
function close(questo) {
var context = $j(thisquesto).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox ).unbind( 'keypress.srdialog' );
$j(thisquesto).closest( '.ui-dialog' ).data( 'dialogaction', false );
}
 
Riga 4 101:
</fieldset>',
init: function() {
init(this);
$j(this).data( 'Ficus', function() {
var argomento = $j( '#wikieditor-toolbar-argomento' ).val();
Riga 4 125:
},
open: function() {
open(this);
},
close: function() {
close(this);
}
}