From e4347cec6f8e46a6ba497fe70da76cc7f37984b1 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 2 Apr 2014 13:01:51 -0400 Subject: [PATCH] web staff : grid row selection css; remove list.js import Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/css/style.css.tt2 | 26 +++++++++++++++++++++++ Open-ILS/src/templates/staff/parts/t_autogrid.tt2 | 2 +- Open-ILS/src/templates/staff/test/index.tt2 | 1 - Open-ILS/web/js/ui/default/staff/services/grid.js | 1 - 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/staff/css/style.css.tt2 b/Open-ILS/src/templates/staff/css/style.css.tt2 index 46263d4bcf..838f8376d7 100644 --- a/Open-ILS/src/templates/staff/css/style.css.tt2 +++ b/Open-ILS/src/templates/staff/css/style.css.tt2 @@ -165,6 +165,31 @@ table.list tr.selected td { border-bottom: 1px solid #888; } +/* Improve ::selection styling by only allowing selection on text + * content cells. Otherwise, the browser styles row background + * and text (all dark blue?) when shift-click or click-drag is used + */ +.eg-grid-row { + user-select:none; + -moz-user-select: none; + -webkit-user-select: none; +} +.eg-grid-cell-content { + user-select:text; + -moz-user-select: text; + -webkit-user-select: text; +} +.eg-grid-cell-content::-moz-selection { + color: rgb(51, 51, 51); + background: rgb(201, 221, 225); + border-bottom: 1px solid #888; +} +.eg-grid-cell-content::selection { + color: rgb(51, 51, 51); + background: rgb(201, 221, 225); + border-bottom: 1px solid #888; +} + .eg-grid-conf-cell-entry { width:98%; text-align:center; @@ -212,6 +237,7 @@ table.list tr.selected td { } */ + /* ---------------------------------------------------------------------- * /Grid * ---------------------------------------------------------------------- */ diff --git a/Open-ILS/src/templates/staff/parts/t_autogrid.tt2 b/Open-ILS/src/templates/staff/parts/t_autogrid.tt2 index b9f9499392..03b3f4487c 100644 --- a/Open-ILS/src/templates/staff/parts/t_autogrid.tt2 +++ b/Open-ILS/src/templates/staff/parts/t_autogrid.tt2 @@ -192,7 +192,7 @@ ng-model="grid.selected[grid.indexValue(item)]"/> -
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 81eb00e5f0..9a81f3d03f 100644 --- a/Open-ILS/web/js/ui/default/staff/services/grid.js +++ b/Open-ILS/web/js/ui/default/staff/services/grid.js @@ -590,7 +590,6 @@ angular.module('egGridMod', }); element.bind('dragend', function(e) { - console.log('dragend'); angular.element(e.target).removeClass('eg-grid-col-drag'); }); } -- 2.11.0