mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
update css and js deps
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
8
static/vendor/datatables/ellipsis.js
vendored
8
static/vendor/datatables/ellipsis.js
vendored
@@ -49,7 +49,7 @@
|
||||
|
||||
jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml ) {
|
||||
var esc = function ( t ) {
|
||||
return t
|
||||
return ('' + t)
|
||||
.replace( /&/g, '&' )
|
||||
.replace( /</g, '<' )
|
||||
.replace( />/g, '>' )
|
||||
@@ -63,12 +63,18 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml )
|
||||
}
|
||||
|
||||
if ( typeof d !== 'number' && typeof d !== 'string' ) {
|
||||
if ( escapeHtml ) {
|
||||
return esc( d );
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
d = d.toString(); // cast numbers
|
||||
|
||||
if ( d.length <= cutoff ) {
|
||||
if ( escapeHtml ) {
|
||||
return esc( d );
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user