How do I change the default text "Edit entry" in Editor's form header?
How do I change the default text "Edit entry" in Editor's form header?
pansengtat
Posts: 66Questions: 26Answers: 1
The default text for div class "DTE_Header_Content" is "edit entry".
If I create an instance of an editor: edit, how do I modify the header content to be some other text, eg. "Update entry"?
My way of initialising Editor:
$('#overview').dataTable( { // INCLUDE IDENTIFIER FOR THE FORM HERE.
dom: "Tfrtip",
ajax: "php/OverviewEditor.php", // PHP CODE FOR THE EDITOR
columns: [ // COLUMN DATA TO BE DISPLAYED
{ data: "TestRequestMain.TestRequestNo" },
{ data: "TestRequestMain.ProjectID" },
{ data: "AssignedGroup.Name" },
],
tableTools: {
sRowSelect: "os",
sSwfPath: "extensions/tabletools/swf/copy_csv_xls_pdf.swf",
aButtons: [
{ sExtends: "editor_edit",
editor: editor,
sButtonText: "Assign Request"
},
{ sExtends: "xls",
sButtonText: "Export as Excel",
sAction: "flash_save"
},
{ sExtends: "csv",
sButtonText: "Export as CSV",
sAction: "flash_save"
},
{ sExtends: "pdf",
sButtonText: "Export as PDF",
sPdfOrientation:"landscape"
},
"print"
]
},
initComplete: function(settings, json) {
editor.field('TestRequestMain.AssignedGroupID').update(json.AssignedGroup);
editor.field('TestRequestMain.Status').update(json.StatusMirror);
}
} );
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
OK that was stupid, I found something useful in this thread that is close to answering my question:
http://datatables.net/forums/discussion/13048/change-the-title-for-add-and-edit-dialogs
Also, the thing to edit the code:
Yup that's the one :-).
The strings used by Editor can all be translated / modified using the options here: http://editor.datatables.net/reference/option/#Internationalisation .
Allan