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

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