mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
trim long file names [fixes SCI-2593]
This commit is contained in:
parent
a6a395e394
commit
1491c61d51
1 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@
|
|||
id + "' style='display:none' /><button class='btn btn-default' " +
|
||||
"data-object='" + object + "' name='" + name + "' value='" + value +
|
||||
"' data-id='" + id + "'>" + buttonLabel +
|
||||
"</button></div><div><p class='file-name-label'>" + fileName +
|
||||
"</button></div><div><p class='file-name-label'>" + truncateLongString(fileName, 20) +
|
||||
"</p></div>";
|
||||
if(value.file_file_name) {
|
||||
html += "<div><a data-action='removeAsset' ";
|
||||
|
@ -312,7 +312,7 @@
|
|||
.find('.file-name-label')[0]);
|
||||
var file = this.files[0];
|
||||
if (file) {
|
||||
$label.text(file.name);
|
||||
$label.text(truncateLongString(file.name, 20));
|
||||
input.attr('remove', false);
|
||||
$($label.closest('.repository-input-file-field')
|
||||
.find('[data-action="removeAsset"]')[0]).show();
|
||||
|
|
Loading…
Reference in a new issue