mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-21 06:45:24 -06:00
fix indent
This commit is contained in:
parent
220aa19749
commit
9243b285d2
1 changed files with 10 additions and 10 deletions
|
|
@ -148,18 +148,18 @@ $('{{ selector }}').on('length.dt', function(e, settings, len) {
|
|||
{% macro timestamp_filter() -%}
|
||||
// extends DataTables sorting
|
||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
||||
"timestamp-pre": function ( a ) {
|
||||
var $obj = $(a);
|
||||
"timestamp-pre": function ( a ) {
|
||||
var $obj = $(a);
|
||||
var title = $obj.attr('title')
|
||||
if (typeof title !== typeof undefined && title !== false)
|
||||
return moment($obj.attr('title'), moment.ISO_8601).valueOf();
|
||||
return moment(title, moment.ISO_8601).valueOf();
|
||||
return moment().valueOf();
|
||||
},
|
||||
"timestamp-asc": function ( a, b ) {
|
||||
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
||||
},
|
||||
"timestamp-desc": function ( a, b ) {
|
||||
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
||||
}
|
||||
},
|
||||
"timestamp-asc": function ( a, b ) {
|
||||
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
||||
},
|
||||
"timestamp-desc": function ( a, b ) {
|
||||
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
||||
}
|
||||
} );
|
||||
{%- endmacro %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue