User:X-Savitar/common.js

/*mw.loader.using( 'oojs-ui-core' ).done( function {	$( function  { var button = new OO.ui.ButtonWidget( { 			label: 'Click me!' 		} ); button.on( 'click', function {			alert( 'You clicked the button!' );		} ); $( '#mw-content-text' ).append( button.$element ); } ); } );*/

/*mw.loader.using( 'oojs-ui-core' ).done( function {	$( function  { // Example: Creating and opening a message dialog window. var messageDialog = new OO.ui.MessageDialog; // Create and append a window manager. var windowManager = new OO.ui.WindowManager; $( '#mw-content-text' ).append( button.$element );

// Add the dialog to the window manager. windowManager.addWindows( [ messageDialog ] ); // Configure the message dialog when it is opened with the window manager's openWindow method. windowManager.openWindow( messageDialog, {		 title: 'Basic message dialog',		  message: 'With a \'title\' and \'message\' ',		  actions: [		    {		      action: 'accept',		      label: 'Dismiss'		    },		    {		    	action: 'cancel',		    	label: 'Close'		    }	    ]		} ); } ); } );*/