jquery-ui 对话框显示关闭图标和“关闭”错误文本。
jquery Ui 版本 1.12.1 和代码:
function callDialog() {
$("#dialog-confirm").dialog({
closeOnEscape: false, resizable: false, height: "auto", width: 400, modal: true, buttons: {
"Yes": function () {
$(this).dialog("close"); },
"No": function () {
$(this).dialog("close"); }
}
});
}
How to fix it
我已经解决了这个问题,添加 closeText (参见最后一行):
$('#dialog').dialog({
autoOpen: false,
width: 500,
height:500,
resizable: true,
title: 'Items',
modal: true,
open: function(event, ui) {
$(this).load("@Url.Action("StorageItemListPartial", "StorageItem")");
},
buttons: {
"Close": function () {
$(this).dialog("close");
}
},
closeText: ''
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)