From 760211d246c8d74fe56c924a80f357864ff1685b Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Fri, 15 Apr 2016 13:42:12 +0000 Subject: [PATCH] SSDM-3390 : Better feedback for selectable grid. SVN: 36189 --- .../1/as/webapps/eln-lims/html/lib/grid/js/Grid.html | 5 +++++ .../eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.html b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.html index 133df486041..b84ad18537a 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.html +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.html @@ -7,6 +7,11 @@ background-color: #F5F5F5; } + .fuelux-selectable .repeater-list-wrapper tr:hover { + background-color: #FBFBFB; + cursor: pointer; + } + /* * Bugfix: Fuelux don't refresh last column correctly so we add a dummy one and hide, check also javascript part */ diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js index 2417869f524..76b9be4ea12 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js @@ -20,6 +20,11 @@ $.extend(Grid.prototype, { thisGrid.panel.html(template); thisGrid.renderColumnDropdown(); thisGrid.renderDropDownOptions(); + + if(thisGrid.rowClickListeners.length > 0) { + thisGrid.panel.addClass("fuelux-selectable"); + } + thisGrid.panel.repeater({ defaultView : "list", dataSource : function(options, callback) { -- GitLab