jquery-ui dialog display close icon and wrong text

前端 未结 2 1550
长发绾君心
长发绾君心 2021-02-20 14:44

jquery-ui dialog display close icon and \"close\" wrong text..

jquery Ui version 1.12.1 and code:

function callDialog() {
    $(\"#dialog-confirm\").dial         


        
2条回答
  •  [愿得一人]
    2021-02-20 15:02

    I've solved this adding closeText (see the last line):

    		$('#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: ''
    		});

提交回复
热议问题