diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-03-11 12:32:52 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-03-11 13:22:30 +0100 |
commit | df67b2c757e813512a6e5f1ea31f8a4693444013 (patch) | |
tree | 06d2715e083052cb63f030804be39eff427c7811 /ishtar_common/static | |
parent | c4f67d1b3a551ffe1cdf6f1982e551bd32c26ff7 (diff) | |
download | Ishtar-df67b2c757e813512a6e5f1ea31f8a4693444013.tar.bz2 Ishtar-df67b2c757e813512a6e5f1ea31f8a4693444013.zip |
Fix: JS table - do not shorten web links
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 ) { |