blob: 3bfcef7daea185e0df95745c00257e9c0937b9fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/**
* Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
* example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
*
* This script depends on uf-table.js, moment.js, handlebars-helpers.js
*
* Target page: /roles/r/{slug}
*/
$(document).ready(function () {
// Control buttons
bindRoleButtons($("#view-role"));
$("#widget-role-permissions").ufTable({
dataUrl: site.uri.public + '/api/roles/r/' + page.role_slug + '/permissions',
useLoadingTransition: site.uf_table.use_loading_transition
});
$("#widget-role-users").ufTable({
dataUrl: site.uri.public + '/api/roles/r/' + page.role_slug + '/users',
useLoadingTransition: site.uf_table.use_loading_transition
});
});
|