From 7e79d39f8d4f6b6d88f474755f385af4f1c4e870 Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Tue, 14 Feb 2012 16:30:04 +0100 Subject: [PATCH] Styling for show/hide columns --- css/data-explorer.css | 6 +++--- src/util.js | 2 +- src/view.js | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/css/data-explorer.css b/css/data-explorer.css index 7ed4e66a..77aacfd6 100644 --- a/css/data-explorer.css +++ b/css/data-explorer.css @@ -515,12 +515,12 @@ td.expression-preview-value { * Read-only mode *********************************************************/ -/*.read-only .data-table tr td:first-child, -.read-only .data-table tr th:first-child +.read-only .no-hidden .data-table tr td:first-child, +.read-only .no-hidden .data-table tr th:first-child { display: none; } -*/ + .read-only .write-op, .read-only a.data-table-cell-edit diff --git a/src/util.js b/src/util.js index d93953b1..35332195 100644 --- a/src/util.js +++ b/src/util.js @@ -11,7 +11,7 @@ var util = function() { , rowActions: '
  • Delete this row
  • ' , rootActions: ' \ {{#columns}} \ -
  • Add column: {{.}}
  • \ +
  • Show column: {{.}}
  • \ {{/columns}}' , cellEditor: ' \