|
|
@ -40247,8 +40247,32 @@ BI.Msg = function () { |
|
|
|
}, 5000); |
|
|
|
}, 5000); |
|
|
|
}, |
|
|
|
}, |
|
|
|
_show: function (hasCancel, title, message, callback) { |
|
|
|
_show: function (hasCancel, title, message, callback) { |
|
|
|
var name = BI.UUID(); |
|
|
|
$mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({ |
|
|
|
BI.Popovers.create(name, { |
|
|
|
position: "absolute", |
|
|
|
|
|
|
|
zIndex: BI.zIndex_tip - 2, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
|
|
|
|
opacity: 0.5 |
|
|
|
|
|
|
|
}).appendTo("body"); |
|
|
|
|
|
|
|
$pop = BI.Widget._renderEngine.createElement("<div class=\"bi-message-depend\">").css({ |
|
|
|
|
|
|
|
position: "absolute", |
|
|
|
|
|
|
|
zIndex: BI.zIndex_tip - 1, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
|
|
|
|
}).appendTo("body"); |
|
|
|
|
|
|
|
var close = function () { |
|
|
|
|
|
|
|
messageShow.destroy(); |
|
|
|
|
|
|
|
$mask.remove(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
var conf = { |
|
|
|
|
|
|
|
element: $pop, |
|
|
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
type: "bi.bar_popover", |
|
|
|
type: "bi.bar_popover", |
|
|
|
header: title, |
|
|
|
header: title, |
|
|
|
body: { |
|
|
|
body: { |
|
|
@ -40266,7 +40290,7 @@ BI.Msg = function () { |
|
|
|
text: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
text: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
level: "ignore", |
|
|
|
level: "ignore", |
|
|
|
handler: function () { |
|
|
|
handler: function () { |
|
|
|
BI.Popovers.remove(name); |
|
|
|
close(); |
|
|
|
if (BI.isFunction(callback)) { |
|
|
|
if (BI.isFunction(callback)) { |
|
|
|
callback.apply(null, [false]); |
|
|
|
callback.apply(null, [false]); |
|
|
|
} |
|
|
|
} |
|
|
@ -40275,7 +40299,7 @@ BI.Msg = function () { |
|
|
|
type: "bi.button", |
|
|
|
type: "bi.button", |
|
|
|
text: BI.i18nText("BI-Basic_Sure"), |
|
|
|
text: BI.i18nText("BI-Basic_Sure"), |
|
|
|
handler: function () { |
|
|
|
handler: function () { |
|
|
|
BI.Popovers.remove(name); |
|
|
|
close(); |
|
|
|
if (BI.isFunction(callback)) { |
|
|
|
if (BI.isFunction(callback)) { |
|
|
|
callback.apply(null, [true]); |
|
|
|
callback.apply(null, [true]); |
|
|
|
} |
|
|
|
} |
|
|
@ -40286,18 +40310,21 @@ BI.Msg = function () { |
|
|
|
lgap: 10, |
|
|
|
lgap: 10, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.button", |
|
|
|
type: "bi.button", |
|
|
|
text: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
text: BI.i18nText("BI-Basic_OK"), |
|
|
|
level: "ignore", |
|
|
|
|
|
|
|
handler: function () { |
|
|
|
handler: function () { |
|
|
|
BI.Popovers.remove(name); |
|
|
|
close(); |
|
|
|
if (BI.isFunction(callback)) { |
|
|
|
if (BI.isFunction(callback)) { |
|
|
|
callback.apply(null, [false]); |
|
|
|
callback.apply(null, [true]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
}, |
|
|
|
}, |
|
|
|
size: "small" |
|
|
|
size: "small" |
|
|
|
}).open(name); |
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
messageShow = BI.createWidget(conf); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
}();/** |
|
|
|
}();/** |
|
|
|