mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°3670 Add new file upload button
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{# @copyright Copyright (C) 2010-2021 Combodo SARL #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
|
||||
$('#{{ oUIBlock.GetId() }}').bind('change', function() {
|
||||
var fileName = $(this).val().replace(/^.*[\\\/]/, '');
|
||||
$('#{{ oUIBlock.GetId() }}-file-name').html(fileName);
|
||||
});
|
||||
{% if oUIBlock.GetShowFilename() == true %}
|
||||
$('#{{ oUIBlock.GetId() }}').bind('change', function() {
|
||||
var fileName = $(this).val().replace(/^.*[\\\/]/, '');
|
||||
$('#{{ oUIBlock.GetId() }}-file-name').html(fileName);
|
||||
});
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user