From 2397c0e1e5c34075a98e35aef8a382645f8378c2 Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Thu, 9 Feb 2012 18:48:29 +0000 Subject: [PATCH] Show column header dropdown even in read-only mode --- css/data-explorer.css | 3 +-- src/util.js | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/css/data-explorer.css b/css/data-explorer.css index c6683954..e5d37af9 100644 --- a/css/data-explorer.css +++ b/css/data-explorer.css @@ -517,8 +517,7 @@ td.expression-preview-value { display: none; } -.read-only .column-header-menu, -.read-only .row-header-menu, +.read-only .write-op, .read-only a.data-table-cell-edit { display: none; diff --git a/src/util.js b/src/util.js index c2883cf6..60311baf 100644 --- a/src/util.js +++ b/src/util.js @@ -2,12 +2,12 @@ var util = function() { var templates = { transformActions: '
  • Global transform...
  • ' , columnActions: ' \ -
  • Transform...
  • \ -
  • Delete this column
  • \ +
  • Transform...
  • \ +
  • Delete this column
  • \
  • Sort ascending
  • \
  • Sort descending
  • \ ' - , rowActions: '
  • Delete this row
  • ' + , rowActions: '
  • Delete this row
  • ' , cellEditor: ' \