VulpesOS/gaia/apps/settings/js/modules/dialog/alert_dialog.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

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);
};
});