mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:50:12 +00:00
Split admin/users into 6 separate modules
- They now feature working pagination
This commit is contained in:
parent
213716d44c
commit
388c0b69d6
31 changed files with 2312 additions and 1002 deletions
|
@ -24,27 +24,6 @@ $(function() {
|
|||
}
|
||||
});
|
||||
|
||||
// Use AJAX calls to reorder the table (so we don't need to reload the page).
|
||||
$body.on('click', '.table-order', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
// Get the parent table element.
|
||||
var table = $(this).parents('table');
|
||||
var orderUrl = this.getAttribute("data-order-url");
|
||||
table.fadeTo("fast", 0.33);
|
||||
|
||||
$body.css("cursor", "wait");
|
||||
|
||||
$.get(orderUrl, function(data) {
|
||||
// Find the table element in the html we got.
|
||||
var result = $(data).find('#' + table[0].id);
|
||||
// And add the new table html to the parent.
|
||||
$(table).replaceWith(result);
|
||||
|
||||
$body.css("cursor", "auto");
|
||||
});
|
||||
});
|
||||
|
||||
function selectall(cls) {
|
||||
$('.' + cls).prop('checked', true);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue