$(function(){
{% if batch is defined and batch_actions is defined and batch_actions|length > 0 %}
var _init_page = function(res){
- {% if login.isAdmin() or login.isStaff() %}
+ {% if login.isAdmin() or login.isStaff() or login.isGroupManager() %}
{# Use of Javascript to draw specific elements that are not relevant if JS is inactive #}
var _checklinks = '<a href="#" class="checkall ui blue tertiary button">{{ _T("(Un)Check all")|e('js') }}</a>' +
' | <a href="#" class="checkinvert ui blue tertiary button">{{ _T("Invert selection")|e('js') }}</a> | ';
_form.append($('<input id="directdownload" type="hidden" name="' + value + '" value="true"/>'));
_form.submit();
$('#directdownload').remove();
+ {% if login.isAdmin() or login.isStaff() %}
// Handle delete.
} else if (value == 'delete') {
{% include "elements/js/removal.js.twig" with {
loader: "button",
loader_parent: ".batch-select-action"
} %}
+ {% endif %}
}
// Handle other custom list actions.
- {% if batch_selection is defined %}
+ {% if batch_selection is defined %}
{% block batch_selection %}{% endblock %}
- {% endif %}
+ {% endif %}
}
});
$('.batch-selection').after({% if _legend_block is not empty %}_legendlink{% else %}_checklinks{% endif %});