N°3670 Add new file upload button

This commit is contained in:
Stephen Abello
2021-02-10 17:17:00 +01:00
parent d08adc43c1
commit 3be360dfb9
4 changed files with 45 additions and 8 deletions

View File

@@ -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 %}