10-17-2012 07:11 AM
10-17-2012 08:30 AM
10-18-2012 01:45 AM
if (jsNode.hasPermission("Write") && !jsNode.isLocked)
{
scope.insituEditors.push(
{
context: filenameId,
params:
{
type: "textBox",
nodeRef: jsNode.nodeRef.toString(),
name: "prop_cm_name",
value: record.fileName,
fnSelect: function fnSelect(elInput, value)
{
// If the file has an extension, omit it from the edit selection
var extnPos = value.lastIndexOf(Alfresco.util.getFileExtension(value)) - 1;
if (extnPos > 0)
{
Alfresco.util.selectText(elInput, 0, extnPos);
}
else
{
elInput.select();
}
},
validations: [
{
type: Alfresco.forms.validation.nodeName,
when: "keyup",
message: scope.msg("validation-hint.nodeName")
},
{
type: Alfresco.forms.validation.length,
args: { min: 1, max: 255, crop: true },
when: "keyup",
message: scope.msg("validation-hint.length.min.max", 1, 255)
}],
title: scope.msg("tip.insitu-rename"),
errorMessage: scope.msg("message.insitu-edit.name.failure")
},
callback:
{
fn: scope._insituCallback,
scope: scope,
obj: record
}
});
}
02-05-2015 04:24 PM
11-27-2017 04:34 AM
I have the same issue, version 5. I have delete this code, but still can rename.
Thanks in advance.
11-28-2017 08:16 AM
Have you recreated the -min.js version of that file?
11-28-2017 10:11 AM
Sorry, I don´t understand.Can you explain it?
Thanks
11-28-2017 11:17 AM
I have use to do it firefox, + firebug, done.
thanks
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.