Skip to content

Instantly share code, notes, and snippets.

@deanstalker
Created January 12, 2015 02:05
Show Gist options
  • Save deanstalker/755b37d1eabb575653c3 to your computer and use it in GitHub Desktop.
Save deanstalker/755b37d1eabb575653c3 to your computer and use it in GitHub Desktop.
Bootstrap 3 Modal Processing Dialog
var app;
app = app || (function () {
var process = $('<div class="modal modal-static fade" id="processing-modal" role="dialog" aria-hidden="true" data-keyboard="false" data-backdrop="static" style="overflow: hidden;"><div class="modal-dialog" style="width: 180px;"><div class="modal-content"><div class="modal-body"><div class="text-center"><i class="fa fa-spinner fa-spin" style="font-size: 64px;"></i><h4>Processing...</h4></div></div></div></div></div>');
return {
showProcess: function () {
process.modal('show');
},
hideProcess: function () {
process.modal('hide');
}
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment