Skip to content

Commit

Permalink
role page: fixed action button (users table) bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
inuryyev committed Jul 4, 2019
1 parent c9db72b commit 70b8d47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/sprinkles/admin/asset-bundles.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
},
"js/pages/role": {
"scripts": [
"userfrosting/js/widgets/users.js",
"userfrosting/js/widgets/roles.js",
"userfrosting/js/pages/role.js"
],
Expand Down
5 changes: 5 additions & 0 deletions app/sprinkles/admin/assets/userfrosting/js/pages/role.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ $(document).ready(function() {
dataUrl: site.uri.public + '/api/roles/r/' + page.role_slug + '/users',
useLoadingTransition: site.uf_table.use_loading_transition
});

// Bind table buttons
$("#widget-role-users").on("pagerComplete.ufTable", function () {
bindUserButtons($(this));
});
});

0 comments on commit 70b8d47

Please sign in to comment.