User:Mono: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
Mono (talk | contribs)
No edit summary
Mono (talk | contribs)
mNo edit summary
Line 1:
<html>
 
<div id="dialog" title="Choose Your Language">
 
<div id="dialog" title="ChooseBasic Your Languagedialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
 
<script>
mw.loader.using(['jquery.ui.dialog'],['jquery.ui.button'], function () {
 
$( '#dialog' ).dialog({
autoOpen: false,
show: "blind",
modal: true,
}
hide: "explode"
);
});
$( "#opener" ).click(function() {
$( "#dialog" ).dialog( "open" );
return false;
});
});
 
$( "#create-user" )
.button()
.click(function() {
$( "#dialog" ).dialog( "open" );
});
});
 
</script>
<button id="create-useropener">Open The Dialog</button>
 
</html>

Revision as of 00:50, 2 October 2012

<html>


This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.

<script> mw.loader.using(['jquery.ui.dialog'], function () {

   $( '#dialog' ).dialog({

autoOpen: false, show: "blind", modal: true, hide: "explode" }); $( "#opener" ).click(function() { $( "#dialog" ).dialog( "open" ); return false; }); }); </script> <button id="opener">Open Dialog</button>

</html>