diff options
Diffstat (limited to 'ishtar_common/static')
-rw-r--r-- | ishtar_common/static/datatables/ellipsis.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/static/datatables/ellipsis.js b/ishtar_common/static/datatables/ellipsis.js index 186e9e56a..562eb701e 100644 --- a/ishtar_common/static/datatables/ellipsis.js +++ b/ishtar_common/static/datatables/ellipsis.js @@ -71,8 +71,12 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml ) if ( d.length <= cutoff ) { return d; } + if (d.substr(0, 2) == "<a"){ // do not cut links + console.log(d); + return d; + } - var shortened = d.substr(0, cutoff-1); + var shortened = d.substr(0, cutoff - 1); // Find the last white space character in the string if ( wordbreak ) { |