Improve logic and fix trimming when slash not present

Fixes #2104
This commit is contained in:
Samuel Georges 2016-06-11 13:45:52 +10:00
parent 536a4b382c
commit ada26ed64a
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
</div>
<div class="info">
<h4 class="filename">
<span data-find-file-name><?= substr($value, 1) ?></span>
<span data-find-file-name><?= ltrim($value, '/') ?></span>
</h4>
</div>
<div class="meta">

View File

@ -16,7 +16,7 @@
</div>
<div class="info">
<h4 class="filename">
<span data-find-file-name><?= substr($value, 1) ?></span>
<span data-find-file-name><?= ltrim($value, '/') ?></span>
<a href="javascript:;" class="find-remove-button">
<i class="icon-times"></i>
</a>