mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
Fix not showing filename next to upload buttons
This commit is contained in:
@@ -9,9 +9,11 @@
|
||||
<span class="ibo-button ibo-is-regular ibo-is-primary">
|
||||
{{ oUIBlock.GetButtonText() }}
|
||||
</span>
|
||||
{% if oUIBlock.GetShowFilename() %}
|
||||
<span id="{{ oUIBlock.GetId() }}-file-name" class="ibo-input-file-select--file-name">
|
||||
{{ oUIBlock.GetFileName() }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</label>
|
||||
</div>
|
||||
{% endapply %}
|
||||
@@ -1,6 +1,6 @@
|
||||
{# @copyright Copyright (C) 2010-2021 Combodo SARL #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
{% if oUIBlock.GetShowFilename() == true %}
|
||||
{% if oUIBlock.GetShowFilename() %}
|
||||
$('#{{ oUIBlock.GetId() }}').bind('change', function() {
|
||||
var fileName = $(this).val().replace(/^.*[\\\/]/, '');
|
||||
$('#{{ oUIBlock.GetId() }}-file-name').html(fileName);
|
||||
|
||||
Reference in New Issue
Block a user