Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
26 lines
709 B
JavaScript
Executable file
26 lines
709 B
JavaScript
Executable file
define(function(require) {
|
|
'use strict';
|
|
|
|
var BaseDialog = require('modules/dialog/base_dialog');
|
|
|
|
var AlertDialog = function(panelDOM, options) {
|
|
BaseDialog.call(this, panelDOM, options);
|
|
};
|
|
|
|
AlertDialog.prototype = Object.create(BaseDialog.prototype);
|
|
AlertDialog.prototype.constructor = AlertDialog;
|
|
AlertDialog.prototype.DIALOG_CLASS = 'alert-dialog';
|
|
AlertDialog.prototype.TRANSITION_CLASS = 'fade';
|
|
|
|
AlertDialog.prototype.bindEvents = function() {
|
|
var self = this;
|
|
|
|
this.getSubmitButton().onclick = function() {
|
|
self._options.onWrapSubmit();
|
|
};
|
|
};
|
|
|
|
return function ctor_alertDialog(panelDOM, options) {
|
|
return new AlertDialog(panelDOM, options);
|
|
};
|
|
});
|