mirror of https://github.com/gophish/gophish
Added datatables sorting for dashboard campaigns. Fixes #166. Also formatting fixes.
parent
3798896042
commit
77e38b6c72
|
@ -51,12 +51,13 @@ $(document).ready(function() {
|
|||
}
|
||||
var average = 0
|
||||
campaignTable = $("#campaignTable").DataTable({
|
||||
columnDefs: [
|
||||
{ orderable: false, targets: "no-sort" }
|
||||
]
|
||||
columnDefs: [{
|
||||
orderable: false,
|
||||
targets: "no-sort"
|
||||
}]
|
||||
});
|
||||
$.each(campaigns, function(i, campaign) {
|
||||
var campaign_date = moment(campaign.created_date).format('MMMM Do YYYY h:mm:ss a')
|
||||
var campaign_date = moment(campaign.created_date).format('MMMM Do YYYY, h:mm:ss a')
|
||||
var label = labels[campaign.status] || "label-default";
|
||||
// Add it to the table
|
||||
campaignTable.row.add([
|
||||
|
|
Loading…
Reference in New Issue