Need IP address modal on logs page

This commit is contained in:
JonnyWong16 2016-05-15 01:26:31 -07:00
commit 663b9a610a
5 changed files with 23 additions and 21 deletions

View file

@ -143,7 +143,7 @@ DOCUMENTATION :: END
<div class='table-card-header'>
<div class="header-bar">
<span>
<i class="fa fa-history"></i> Play History for <strong>
<i class="fa fa-history"></i> History for <strong>
<span class="set-username">${data['friendly_name']}</span>
</strong>
</span>
@ -287,7 +287,7 @@ DOCUMENTATION :: END
</div>
</div>
<div class="table-card-back">
<table class="display login_table" id="login_table-UID-${data['user_id']}" width="100%">
<table class="display login_log_table" id="login_log_table-UID-${data['user_id']}" width="100%">
<thead>
<tr>
<th align="left" id="timestamp">Timestamp</th>
@ -367,7 +367,7 @@ DOCUMENTATION :: END
<script src="${http_root}js/tables/history_table.js"></script>
<script src="${http_root}js/tables/user_ips.js"></script>
<script src="${http_root}js/tables/sync_table.js"></script>
<script src="${http_root}js/tables/login_table.js"></script>
<script src="${http_root}js/tables/login_logs.js"></script>
<script>
$(document).ready(function () {
@ -472,19 +472,19 @@ DOCUMENTATION :: END
$( "#login-tab-btn" ).one( "click", function() {
// Build user login table
login_table_options.ajax = {
login_log_table_options.ajax = {
url: 'get_user_logins',
data: function(d) {
d.user_id = user_id;
}
}
login_table = $('#login_table-UID-${data["user_id"]}').DataTable(login_table_options);
login_table.columns([1, 2]).visible(false);
login_log_table = $('#login_log_table-UID-${data["user_id"]}').DataTable(login_log_table_options);
login_log_table.columns([1, 2]).visible(false);
var colvis_login = new $.fn.dataTable.ColVis( login_table, { buttonText: '<i class="fa fa-columns"></i> Select columns', buttonClass: 'btn btn-dark' } );
var colvis_login = new $.fn.dataTable.ColVis( login_log_table, { buttonText: '<i class="fa fa-columns"></i> Select columns', buttonClass: 'btn btn-dark' } );
$( colvis_login.button() ).appendTo('#button-bar-login');
clearSearchButton('login_table-UID-${data["user_id"]}', login_table);
clearSearchButton('login_log_table-UID-${data["user_id"]}', login_log_table);
});
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {