Added organisation information page
This commit is contained in:
24
assets/avsdev/js/pages/organisation.js
Normal file
24
assets/avsdev/js/pages/organisation.js
Normal file
@@ -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, widgets/users.js
|
||||
*
|
||||
* Target page: /organisations/o/{slug}
|
||||
*/
|
||||
|
||||
$(document).ready(function() {
|
||||
// Control buttons
|
||||
bindOrganisationButtons($("#view-organisation"), { delete_redirect: page.delete_redirect });
|
||||
|
||||
// Table of users in this organisation
|
||||
$("#widget-organisation-members").ufTable({
|
||||
dataUrl: site.uri.public + '/api/organisations/o/' + page.organisation_slug + '/members',
|
||||
useLoadingTransition: site.uf_table.use_loading_transition
|
||||
});
|
||||
|
||||
// Bind user table buttons
|
||||
$("#widget-organisation-members").on("pagerComplete.ufTable", function () {
|
||||
bindUserButtons($(this));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user