fix comment user/abellenir/lp1785333-right-click-clears-selection
authora. bellenir <ab@grpl.org>
Tue, 7 Aug 2018 22:46:50 +0000 (18:46 -0400)
committera. bellenir <ab@grpl.org>
Tue, 7 Aug 2018 22:46:50 +0000 (18:46 -0400)
Signed-off-by: a. bellenir <ab@grpl.org>
Open-ILS/web/js/ui/default/staff/services/grid.js

index 9dcdc5f..3f7aba3 100644 (file)
@@ -684,7 +684,7 @@ angular.module('egGridMod',
                 // we need the the row that got right-clicked...
                 var e = $event.target; // the DOM element
                 var s = undefined;     // the angular scope for that element
-                while(e){ // searching for the row so we can get its index from s.$index
+                while(e){ // searching for the row
                     // abort & use the browser default context menu for links (lp1669856):
                     if(e.tagName.toLowerCase() === 'a' && e.href){ return true; }
                     s = angular.element(e).scope();