diff options
Diffstat (limited to 'main/app/sprinkles/admin/assets/userfrosting/js/pages/group.js')
-rwxr-xr-x | main/app/sprinkles/admin/assets/userfrosting/js/pages/group.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/main/app/sprinkles/admin/assets/userfrosting/js/pages/group.js b/main/app/sprinkles/admin/assets/userfrosting/js/pages/group.js new file mode 100755 index 0000000..a1ca959 --- /dev/null +++ b/main/app/sprinkles/admin/assets/userfrosting/js/pages/group.js @@ -0,0 +1,24 @@ +/** + * 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: /groups/g/{slug} + */ + +$(document).ready(function() { + // Control buttons + bindGroupButtons($("#view-group")); + + // Table of users in this group + $("#widget-group-users").ufTable({ + dataUrl: site.uri.public + '/api/groups/g/' + page.group_slug + '/users', + useLoadingTransition: site.uf_table.use_loading_transition + }); + + // Bind user table buttons + $("#widget-group-users").on("pagerComplete.ufTable", function () { + bindUserButtons($(this)); + }); +}); |