dashboard/js/lib/ui.js
function Dialog(options) {
  ui.Emitter.call(this);
  options = options || {};
  this.template = html;
  this.el = $(this.template);
  this.render(options);
  if (active && !active.hiding) active.hide();
  if (Dialog.effect) this.effect(Dialog.effect);
  active = this;
}
function Dialog(options) {
  ui.Emitter.call(this);
  options = options || {};
  this.template = html;
  this.el = $(this.template);
  this.render(options);
  if (active && !active.hiding) active.hide();
  if (Dialog.effect) this.effect(Dialog.effect);
  active = this;
}
function Dialog ( options ) { ui . Emitter . call ( this ) ; options = options || { } ; this . template = html ; this . el = $ ( this . template ) ; this . render ( options ) ; if ( active && ! active . hiding ) active . hide ( ) ; if ( Dialog . effect ) this . effect ( Dialog . effect ) ; active = this ; }
Initialize a new `Dialog`.

Options:

- `title` dialog title
- `message` a message to display

Emits:

- `show` when visible
- `hide` when hidden

@param {Object} options
@api public
Initialize a new Dialog .