Commit a6804f30 authored by Christodoulos Psaltis's avatar Christodoulos Psaltis
Browse files

Truncate large metadata values in edit dialog, Refs #375

parent db99de40
......@@ -769,8 +769,8 @@ function list_metadata(data) {
pair = $("ul.meta-template li").clone();
//truncate metadata
pair.find("label").text(key.substring(0,15));
if (meta[key].length > 32) {
pair.find("p").text(meta[key].substring(0,30) + "...");
if (meta[key].length > 25) {
pair.find("p").text(meta[key].substring(0,25) + "...");
} else {
pair.find("p").text(meta[key]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment