From d22fd667d09c2c159daed9d7f1ba4f705fec9c74 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 7 Sep 2016 16:32:06 +0200 Subject: [sysconfig] Improve design, hide more controls in location-specific view, get rid of JS hack for ellipsis in tables (by adding a HTML/CSS hack for it :)) --- modules-available/sysconfig/clientscript.js | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'modules-available/sysconfig/clientscript.js') diff --git a/modules-available/sysconfig/clientscript.js b/modules-available/sysconfig/clientscript.js index 47761ea5..c86b8148 100644 --- a/modules-available/sysconfig/clientscript.js +++ b/modules-available/sysconfig/clientscript.js @@ -1,27 +1,4 @@ -// Ugly hack to get the ellipsisized fields to work - -function forceTable(t) -{ - var pwidth = t.parent().innerWidth(); - var rows = t.find('tr'); - var row = rows.first(); - pwidth = Math.round(pwidth); - t.width(pwidth); - var sum = 0; - row.find('td').each(function() { - if (!$(this).hasClass('slx-width-ignore')) - sum += $(this).outerWidth(true); - }); - var w = Math.round(pwidth - sum); - do { - rows.find('.slx-dyn-ellipsis').each(function() { - $(this).width(w).css('width', w + 'px').css('max-width', w + 'px'); - }); - w -= 3; - } while (t.width() > pwidth); -} - // Mouseover and clicking var boldItem = false; -- cgit v1.2.3-55-g7522