Revision 7579d508
Added by Ewoud Kohl van Wijngaarden about 1 month ago
app/assets/javascripts/application.js | ||
---|---|---|
}
|
||
}
|
||
|
||
$(document).ready(function() {
|
||
$('#check_all_roles').click(function(e) {
|
||
e.preventDefault();
|
||
$('.role_checkbox').prop('checked', true);
|
||
});
|
||
|
||
$('#uncheck_all_roles').click(function(e) {
|
||
e.preventDefault();
|
||
$('.role_checkbox').prop('checked', false);
|
||
});
|
||
});
|
||
|
||
function toggleCheckboxesBySelector(selector) {
|
||
boxes = $(selector);
|
||
var all_checked = true;
|
Also available in: Unified diff
Fixes #37385 - Drop (un)check_all_roles event handlers
In acfbc45886c4d81a2a3ca5af433a6124a0a7191a the links with these IDs
were removed, but the JavaScript handler remained. I can't find other
traces of its usage. Originally added in
feacea35f07f362d9e2c694a83516bbc902321a0.
Fixes: acfbc45886c4 ("fixes #812 - new permissions model, user group role and nest support, role filters for better granularity")