User:Mono: Difference between revisions
Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<html> |
<html> |
||
⚫ | |||
⚫ | |||
<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> |
<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> |
</div> |
||
<script> |
<script> |
||
mw.loader.using(['jquery.ui.dialog |
mw.loader.using(['jquery.ui.dialog'], function () { |
||
$( '#dialog' ).dialog({ |
$( '#dialog' ).dialog({ |
||
autoOpen: false, |
autoOpen: false, |
||
show: "blind", |
|||
modal: true, |
modal: true, |
||
} |
|||
hide: "explode" |
|||
); |
|||
⚫ | |||
⚫ | |||
⚫ | |||
return false; |
|||
⚫ | |||
}); |
}); |
||
$( "#create-user" ) |
|||
.button() |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</script> |
</script> |
||
<button id=" |
<button id="opener">Open Dialog</button> |
||
</html> |
</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>