Skip to content

Instantly share code, notes, and snippets.

@tarlepp
Created July 31, 2013 09:05
Show Gist options
  • Select an option

  • Save tarlepp/6120551 to your computer and use it in GitHub Desktop.

Select an option

Save tarlepp/6120551 to your computer and use it in GitHub Desktop.
// Open bootbox modal
var modal = openBootboxDialog(title, content, buttons, false);
modal.on('hidden.bs.modal', function() {
console.log('hidden');
});
modal.on('show.bs.modal', function() {
console.log('show');
});
// Make form init when dialog is opened.
modal.on('shown.bs.modal', function() {
console.log('shown');
initProjectPhases(modal);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment