Project

General

Profile

« Previous | Next » 

Revision ec299515

Added by Ewoud Kohl van Wijngaarden 23 days ago

Fixes #37386 - Drop toggleRowGroup and filter_permissions functions

Their last use was dropped in acfbc45886c4d81a2a3ca5af433a6124a0a7191a
and I can't other traces of their usage.

Fixes: acfbc45886c4 ("fixes #812 - new permissions model, user group role and nest support, role filters for better granularity")

View differences:

app/assets/javascripts/application.js
}
}
function toggleRowGroup(el) {
var tr = $(el).closest('tr');
var n = tr.next();
tr.toggleClass('open');
while (n.length > 0 && !n.hasClass('group')) {
n.toggle();
n = n.next();
}
}
function template_info(div, url) {
// Ignore method as PUT redirects to host page if used on update
form = $("form :input[name!='_method']").serialize();
......
}
}
function filter_permissions(item) {
var term = $(item)
.val()
.trim();
if (term.length > 0) {
$('.form-group .collapse')
.parents('.form-group')
.hide();
$(".form-group .control-label:icontains('" + term + "')")
.parents('.form-group')
.show();
} else {
$('.form-group .collapse')
.parents('.form-group')
.show();
}
}
function setPowerState(item, status) {
var power_actions = $('#power_actions'),
loading_power_state = $('#loading_power_state');

Also available in: Unified diff