html = [
,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> ',monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> message,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> ',monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> ,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">
);
$el = $(html);
).get(0).onclick = okCallback;
).get(0).onclick = cancelCallback;
$el;
(settings) {
message = settings.message || ;
okText = settings.okText || ;
html = [
,monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> ',monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> message,monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> ',monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> okText,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">
).get(0).onclick = okCallback;
_options = defaultOptions;
() {
_options.confirmElement(arguments[0]);
() {
_options.alertElement(arguments[0]);
(opts) {
i = ( opts === ) ? 1 : 0;
defaults = {
,monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> onOk: arguments[i++] || _options.emptyHandler(),monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> onCancel: arguments[i++] || _options.emptyHandler(),monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> okText: arguments[i++] || ,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> cancelText: arguments[i] ||
settings = $.extend({},_options,defaults,opts);
(opts) {
defaults = {
,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> onOk: arguments[i++] || _options.emptyHandler(),monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> okText: arguments[i] ||
settings = $.extend({},monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> settings = $.extend(settings,{ message: _dialog.alertElement(settings) });
(opts) {
() {