...
|
...
|
@@ -23,13 +23,13 @@ RDialog.prototype = new Dialog({ |
|
|
});
|
|
|
RDialog.prototype.constructor = RDialog;
|
|
|
|
|
|
function RConfirm(content, ok, cancel) {
|
|
|
function RConfirm(content, ok, cancel, okName, cancelName) {
|
|
|
var rd = new RDialog({
|
|
|
content: content,
|
|
|
btns: [{
|
|
|
id: 'confirm-btn-ok',
|
|
|
btnClass: ['alert-sure'],
|
|
|
name: '确定',
|
|
|
name: okName || '确定',
|
|
|
cb: function() {
|
|
|
rd.close();
|
|
|
(typeof ok === 'function') && ok();
|
...
|
...
|
@@ -37,7 +37,7 @@ function RConfirm(content, ok, cancel) { |
|
|
}, {
|
|
|
id: 'confirm-btn-cencel',
|
|
|
btnClass: ['btn-cancel'],
|
|
|
name: '取消',
|
|
|
name: cancelName || '取消',
|
|
|
cb: function() {
|
|
|
rd.close();
|
|
|
}
|
...
|
...
|
|