From: Bill Erickson Date: Wed, 2 Apr 2014 17:01:51 +0000 (-0400) Subject: web staff : grid row selection css; remove list.js import X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e4347cec6f8e46a6ba497fe70da76cc7f37984b1;p=working%2FEvergreen.git web staff : grid row selection css; remove list.js import Signed-off-by: Bill Erickson --- 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'); }); }