From df67b2c757e813512a6e5f1ea31f8a4693444013 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 11 Mar 2020 12:32:52 +0100 Subject: Fix: JS table - do not shorten web links --- ishtar_common/static/datatables/ellipsis.js | 6 +++++- ishtar_common/views_item.py | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'ishtar_common') 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) == "" \ "" - link_ext_template = '' + link_ext_template = '{}' lock = ' ' own_lock = ' ' -- cgit v1.2.3