mirror of https://github.com/gophish/gophish
Changed default sorting order in campaign tables to show most recent campaigns first. Fixes #426
parent
b5100156f9
commit
22834c75a6
|
@ -312,7 +312,10 @@ $(document).ready(function() {
|
||||||
columnDefs: [{
|
columnDefs: [{
|
||||||
orderable: false,
|
orderable: false,
|
||||||
targets: "no-sort"
|
targets: "no-sort"
|
||||||
}]
|
}],
|
||||||
|
order: [
|
||||||
|
[1, "desc"]
|
||||||
|
]
|
||||||
});
|
});
|
||||||
$.each(campaigns, function(i, campaign) {
|
$.each(campaigns, function(i, campaign) {
|
||||||
label = labels[campaign.status] || "label-default";
|
label = labels[campaign.status] || "label-default";
|
||||||
|
|
|
@ -56,7 +56,10 @@ $(document).ready(function() {
|
||||||
columnDefs: [{
|
columnDefs: [{
|
||||||
orderable: false,
|
orderable: false,
|
||||||
targets: "no-sort"
|
targets: "no-sort"
|
||||||
}]
|
}],
|
||||||
|
order: [
|
||||||
|
[1, "desc"]
|
||||||
|
]
|
||||||
});
|
});
|
||||||
$.each(campaigns, function(i, campaign) {
|
$.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')
|
||||||
|
|
Loading…
Reference in New Issue