JQuery Flexigrid更改标签编辑

JQuery Flexigrid更改标签编辑,jquery,flexigrid,Jquery,Flexigrid,如何将标签编辑更改为其他文本?通常,标签为添加、编辑、删除。当用户单击此链接时,我会将编辑更改为查看或显示为我的目标,它将转到编辑表单,但所有字段都是只读的(用户无法编辑数据),因此标题为编辑时看起来很奇怪 function conditionalDialog(mode){ var theButtons = {}; var theautoOpen = true; var title = ""; if (mode=='first'){ th

如何将标签编辑更改为其他文本?通常,标签为添加、编辑、删除。当用户单击此链接时,我会将编辑更改为查看或显示为我的目标,它将转到编辑表单,但所有字段都是只读的(用户无法编辑数据),因此标题为编辑时看起来很奇怪

    function conditionalDialog(mode){
    var theButtons = {};
    var theautoOpen = true;
    var title = "";

    if (mode=='first'){
        theautoOpen = false;    }
    if (mode=='Add'){
        title = "Add Product Record";
        theButtons["Save"] = function() { simpan('add'); Tambah(); };
        theButtons["Close"] = function() { $(this).dialog("close"); };
    }else{
        title = "Edit Product Record";
        theButtons["Save"] = function() { simpan('edit'); $(this).dialog("close"); };
        theButtons["Cancel"] = function() { $(this).dialog("close"); };
    }
    $('#form').dialog("option","title",title);
    $('#form')
    .dialog({
        autoOpen: theautoOpen,
        width: 600, 
        buttons: theButtons,
        show:"slide"
    }); 
}   
你可以在$('#form')行看到对话框(“选项”,“标题”,标题);
它会改变标签

我自己做的,非常感谢