{# @copyright   Copyright (C) 2010-2023 Combodo SARL #}
{# @license     http://opensource.org/licenses/AGPL-3.0 #}
{% if oUIBlock.GetShowFilename() %}
    $('#{{ oUIBlock.GetId() }}').bind('change', function() {
        var fileName = $(this).val().replace(/^.*[\\\/]/, '');
        fileName = $('<div/>').text(fileName).html();
        $('#{{ oUIBlock.GetId() }}-file-name').html(fileName);
    });
{%  endif %}