var BootstrapDialog = new Class({ Implements: Options, options: { cancelButton: false, closeButton: false, acceptButton: true }, initialize: function (title, options) { this.setOptions(options); this._native = $('').append(''); var content = $(''); var header = this._buildHeader(title); if (header) { content.append(header); } content.append(''); var footer = this._buildFooter(); if (footer) { content.append(footer); } this._native.append(content); }, _buildFooter: function() { var footer = null; if (this.options.acceptButton || this.options.cancelButton) { footer = $('