From 59c21e28aba87a9859670e47f536e40186226f7f Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Wed, 10 Oct 2018 15:47:37 -0400 Subject: [PATCH] Revert "LP#1740412 Grid cell tooltips limited to long content" This reverts commit e8115509bd907248bdb1088e68fcacd5dc15d899. Remove tooltips functionality that causes performance hit. Signed-off-by: Jason Stephenson --- Open-ILS/src/templates/staff/share/t_autogrid.tt2 | 7 ++---- Open-ILS/web/js/ui/default/staff/services/grid.js | 26 ----------------------- 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/Open-ILS/src/templates/staff/share/t_autogrid.tt2 b/Open-ILS/src/templates/staff/share/t_autogrid.tt2 index 12996ea67d..8e07c7bc7d 100644 --- a/Open-ILS/src/templates/staff/share/t_autogrid.tt2 +++ b/Open-ILS/src/templates/staff/share/t_autogrid.tt2 @@ -345,10 +345,8 @@ - + @@ -356,9 +354,8 @@ {{text_value}} diff --git a/Open-ILS/web/js/ui/default/staff/services/grid.js b/Open-ILS/web/js/ui/default/staff/services/grid.js index ce494daf73..33998a1088 100644 --- a/Open-ILS/web/js/ui/default/staff/services/grid.js +++ b/Open-ILS/web/js/ui/default/staff/services/grid.js @@ -833,32 +833,6 @@ angular.module('egGridMod', return grid.modifyColumnPos(col, diff); } - // Returns true of the contents of the cell overflow its container. - // parentDepth tells the code how far up the DOM tree to traverse - // via parentNode before stopping to inspect the value. - // There's no way to pass a reference to a DOM node directly via - // a scope function (except ng-click, etc.) so pass the - // DOM id instead and get the node from there. - $scope.cellOverflowed = function(id, parentDepth) { - var node = document.getElementById(id); - if (!node) return; - for (var i = 0; i < parentDepth; i++) { - node = node.parentNode; - } - return node.scrollHeight > node.clientHeight - || node.scrollWidth > node.clientWidth; - } - - // Generates a unique identifier per cell per grid. - $scope.cellId = function(col, item) { - if (!col || !item) return ''; - return 'grid-cell-span-' - // differentiate grids - + ($scope.persistKey || $scope.idlClass || $scope.grid_element.id) - // differentiate rows and columns. - + '-' + col.name + '-' + $scope.indexValue(item); - - } // handles click, control-click, and shift-click $scope.handleRowClick = function($event, item) { -- 2.11.0