|
@@ -78,7 +78,7 @@
|
|
|
$("#hintBox_value").focus();
|
|
|
$("#hintBox_value").select();
|
|
|
},
|
|
|
- infoBox: function (title, caption, btnType, doYes, doNo) {
|
|
|
+ infoBox: function (title, caption, btnType, doYes, doNo, btnTextArr) {
|
|
|
this.init();
|
|
|
$('#hintBox_title').text(title);
|
|
|
$('#hintBox_caption').html(caption);
|
|
@@ -86,19 +86,36 @@
|
|
|
|
|
|
switch (btnType) {
|
|
|
case this.btnType.yes:
|
|
|
- $('#hintBox_btn_yes').text('确定');
|
|
|
+ if (btnTextArr){
|
|
|
+ $('#hintBox_btn_yes').text(btnTextArr[0]);
|
|
|
+ }else
|
|
|
+ $('#hintBox_btn_yes').text('确定');
|
|
|
+
|
|
|
$('#hintBox_btn_yes').show();
|
|
|
break;
|
|
|
case this.btnType.yesNo:
|
|
|
- $('#hintBox_btn_yes').text('是');
|
|
|
- $('#hintBox_btn_no').text('否');
|
|
|
+ if (btnTextArr){
|
|
|
+ $('#hintBox_btn_yes').text(btnTextArr[0]);
|
|
|
+ $('#hintBox_btn_no').text(btnTextArr[1]);
|
|
|
+ }else{
|
|
|
+ $('#hintBox_btn_yes').text('是');
|
|
|
+ $('#hintBox_btn_no').text('否');
|
|
|
+ }
|
|
|
+
|
|
|
$('#hintBox_btn_yes').show();
|
|
|
$('#hintBox_btn_no').show();
|
|
|
break;
|
|
|
case this.btnType.yesNoCancel:
|
|
|
- $('#hintBox_btn_yes').text('是');
|
|
|
- $('#hintBox_btn_no').text('否');
|
|
|
- $('#hintBox_btn_cancel').text('取消');
|
|
|
+ if (btnTextArr){
|
|
|
+ $('#hintBox_btn_yes').text(btnTextArr[0]);
|
|
|
+ $('#hintBox_btn_no').text(btnTextArr[1]);
|
|
|
+ $('#hintBox_btn_cancel').text(btnTextArr[2]);
|
|
|
+ }else{
|
|
|
+ $('#hintBox_btn_yes').text('是');
|
|
|
+ $('#hintBox_btn_no').text('否');
|
|
|
+ $('#hintBox_btn_cancel').text('取消');
|
|
|
+ }
|
|
|
+
|
|
|
$('#hintBox_btn_yes').show();
|
|
|
$('#hintBox_btn_no').show();
|
|
|
$('#hintBox_btn_cancel').show();
|