Added functionality to permenently delete or restore deleted organisations
This commit is contained in:
@@ -8,20 +8,31 @@
|
||||
*/
|
||||
|
||||
$(document).ready(function() {
|
||||
if ($("#widget-organisations").length) {
|
||||
$("#widget-organisations").ufTable({
|
||||
dataUrl: site.uri.public + "/api/organisations",
|
||||
useLoadingTransition: site.uf_table.use_loading_transition
|
||||
});
|
||||
|
||||
$("#widget-organisations").ufTable({
|
||||
dataUrl: site.uri.public + "/api/organisations",
|
||||
useLoadingTransition: site.uf_table.use_loading_transition
|
||||
});
|
||||
// Bind creation button
|
||||
bindOrganisationCreationButton($("#widget-organisations"));
|
||||
|
||||
// Bind creation button
|
||||
bindOrganisationCreationButton($("#widget-organisations"));
|
||||
// Bind registration button
|
||||
bindOrganisationRegistrationButton($("#widget-organisations"));
|
||||
|
||||
// Bind registration button
|
||||
bindOrganisationRegistrationButton($("#widget-organisations"));
|
||||
// Bind table buttons
|
||||
$("#widget-organisations").on("pagerComplete.ufTable", function () {
|
||||
bindOrganisationButtons($(this));
|
||||
});
|
||||
} else {
|
||||
$("#widget-deleted-organisations").ufTable({
|
||||
dataUrl: site.uri.public + "/api/organisations/deleted",
|
||||
useLoadingTransition: site.uf_table.use_loading_transition
|
||||
});
|
||||
|
||||
// Bind table buttons
|
||||
$("#widget-organisations").on("pagerComplete.ufTable", function () {
|
||||
bindOrganisationButtons($(this));
|
||||
});
|
||||
// Bind table buttons
|
||||
$("#widget-deleted-organisations").on("pagerComplete.ufTable", function () {
|
||||
bindOrganisationButtons($(this));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user