Enable fancy DataTables functionality for users table in manageruser

This commit is contained in:
Ivan Filippov 2016-04-22 20:08:08 -06:00
parent 6719fa8afb
commit 1b2fd766bd

View File

@ -20,7 +20,7 @@
<h3 class="box-title">Manage Users</h3> <h3 class="box-title">Manage Users</h3>
</div> </div>
<div class="box-body"> <div class="box-body">
<table id="tbl_history" class="table table-bordered table-striped"> <table id="tbl_users" class="table table-bordered table-striped">
<thead> <thead>
<tr> <tr>
<th>Username</th> <th>Username</th>
@ -66,6 +66,16 @@
{% endblock %} {% endblock %}
{% block extrascripts %} {% block extrascripts %}
<script> <script>
// set up user data table
$("#tbl_users").DataTable({
"paging" : true,
"lengthChange" : false,
"searching" : true,
"ordering" : true,
"info" : true,
"autoWidth" : false
});
// handle revocation of privileges // handle revocation of privileges
$('.button_revoke').click(function() { $('.button_revoke').click(function() {
var modal = $("#modal_revoke"); var modal = $("#modal_revoke");