Skip to content

Instantly share code, notes, and snippets.

@nikku
Created September 8, 2011 18:55
Show Gist options
  • Select an option

  • Save nikku/1204299 to your computer and use it in GitHub Desktop.

Select an option

Save nikku/1204299 to your computer and use it in GitHub Desktop.
<a class="open-dialog2" closeOnOverlayClick="false" showCloseHandle="false" rel="sample1-dialog">simple alert</a>
<!-- which is equivalent to the following javascript snippet -->
<script type="text/javascript">
$(function() {
$("#sample1-dialog").dialog2({
showCloseHandle: false,
removeOnClose: false,
autoOpen: false
});
$(".open-dialog2").click(function(event) {
event.preventDefault();
$("#sample1-dialog").dialog2("open");
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment