jquery-ui dialog display close icon and wrong text

前端 未结 2 1549
长发绾君心
长发绾君心 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 had this same error and correct it by changing the following line of code closeText: "Close" for closeText: "" in jquery-ui file

    $.widget( "ui.dialog", {
    version: "1.12.1",
    options: {
        appendTo: "body",
        autoOpen: true,
        buttons: [],
        classes: {
            "ui-dialog": "ui-corner-all",
            "ui-dialog-titlebar": "ui-corner-all"
        },
        closeOnEscape: true,
        closeText: "",
    

提交回复
热议问题