Skip to content

Commit 70b8d47

Browse files
author
inuryyev
committed
role page: fixed action button (users table) bindings
1 parent c9db72b commit 70b8d47

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/sprinkles/admin/asset-bundles.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
},
7676
"js/pages/role": {
7777
"scripts": [
78+
"userfrosting/js/widgets/users.js",
7879
"userfrosting/js/widgets/roles.js",
7980
"userfrosting/js/pages/role.js"
8081
],

app/sprinkles/admin/assets/userfrosting/js/pages/role.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ $(document).ready(function() {
2020
dataUrl: site.uri.public + '/api/roles/r/' + page.role_slug + '/users',
2121
useLoadingTransition: site.uf_table.use_loading_transition
2222
});
23+
24+
// Bind table buttons
25+
$("#widget-role-users").on("pagerComplete.ufTable", function () {
26+
bindUserButtons($(this));
27+
});
2328
});

0 commit comments

Comments
 (0)