Added help message when the facet panel is empty.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@466 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-04-13 07:52:01 +00:00
parent dc4b63d2bf
commit 01fbca0fe6
2 changed files with 21 additions and 1 deletions

View File

@ -48,6 +48,11 @@ BrowsingEngine.prototype._initializeUI = function() {
this._div.html(
'<div class="browsing-panel-header">' +
'<div class="browsing-panel-help" bind="help">' +
'<h1>Explore data ...</h1>' +
'<p>by choosing a facet or filter method from the menus at the top of each column.</p>' +
'<p>Not sure how to get started? Watch this screencast.</p>' +
'</div>' +
'<div class="browsing-panel-indicator" bind="indicator"><img src="images/small-spinner.gif" /> refreshing facets ...</div>' +
'<div class="browsing-panel-controls" bind="controls">' +
'<p>' +
@ -174,7 +179,10 @@ BrowsingEngine.prototype.update = function(onDone) {
self._elmts.indicator.hide();
if (self._facets.length > 0) {
self._elmts.help.hide();
self._elmts.controls.show();
} else {
self._elmts.help.show();
}
if (onDone) {

View File

@ -1,6 +1,5 @@
.browsing-panel-header {
height: 5em;
text-align: center;
}
.browsing-panel-indicator {
@ -9,6 +8,19 @@
.browsing-panel-controls {
display: none;
}
.browsing-panel-help {
padding: 10px;
background: white;
border: 1px solid #ccc;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
.browsing-panel-help h1 {
margin-top: 0px;
font-size: 150%;
font-weight: bold;
color: #888;
}
ul.facets-container {
padding: 0;