From fbedb9d558fa52e11727857cb9e2d69d11830c0c Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 19 Jul 2013 11:07:22 +0000 Subject: [PATCH] rebuild basic browsertest functionality not provided by jquery anymore --- phpgwapi/js/egw_action/egw_grid_view.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/phpgwapi/js/egw_action/egw_grid_view.js b/phpgwapi/js/egw_action/egw_grid_view.js index f8f1c0b93c..8b030baead 100644 --- a/phpgwapi/js/egw_action/egw_grid_view.js +++ b/phpgwapi/js/egw_action/egw_grid_view.js @@ -214,18 +214,18 @@ egwGridViewOuter.prototype.updateColumns = function(_columns) // Ugly browser dependant code - each browser seems to treat the // right (collapsed) border of the row differently addBorder = 0; - if ($j.browser.mozilla) - { - var maj = $j.browser.version.split(".")[0]; - if (maj < 2) { - addBorder = 1; // Versions <= FF 3.6 - } - } - if ($j.browser.webkit && !first) + //if ($j.browser.mozilla) + //{ + // var maj = $j.browser.version.split(".")[0]; + // if (maj < 2) { + // addBorder = 1; // Versions <= FF 3.6 + // } + //} + if (/*$j.browser.webkit &&*/ !first) { addBorder = 1; } - if (($j.browser.msie || $j.browser.opera) && first) + if (/*($j.browser.msie || $j.browser.opera) &&*/ first) { addBorder = -1; } @@ -682,7 +682,7 @@ egwGridViewContainer.prototype.setPosition = function(_top) * of the mostly called functions in the whole grid code and should stay * quite fast. */ -if ($j.browser.mozilla) +if (navigator.userAgent.match(/Mozilla /) && !navigator.userAgent.match(/WebKit /)) { egwGridViewContainer.prototype.getHeight = function(_update) {