disable editing the internal metadata
This commit is contained in:
parent
facffdca37
commit
e958dfc4c2
@ -14,6 +14,7 @@ function EditMetadataDialog(metaData, targetRowElem) {
|
|||||||
|
|
||||||
var td2 = tr.insertCell(2);
|
var td2 = tr.insertCell(2);
|
||||||
|
|
||||||
|
if (key !== "modified" && key !== "rowNumber" && key !== "importOptionMetaData" && key !== "id") {
|
||||||
$('<button class="button">').text($.i18n._('core-index')["edit"]).appendTo(td2).click(function() {
|
$('<button class="button">').text($.i18n._('core-index')["edit"]).appendTo(td2).click(function() {
|
||||||
var newValue = window.prompt($.i18n._('core-index')["change-metadata-value"]+" " + key, value);
|
var newValue = window.prompt($.i18n._('core-index')["change-metadata-value"]+" " + key, value);
|
||||||
if (newValue !== null) {
|
if (newValue !== null) {
|
||||||
@ -37,6 +38,7 @@ function EditMetadataDialog(metaData, targetRowElem) {
|
|||||||
|
|
||||||
Refine.OpenProjectUI.refreshProject(targetRowElem, metaData);
|
Refine.OpenProjectUI.refreshProject(targetRowElem, metaData);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this._createDialog();
|
this._createDialog();
|
||||||
|
Loading…
Reference in New Issue
Block a user