From 77b8bfd0b2c62c99acb345bf28360eac6a0c77ba Mon Sep 17 00:00:00 2001 From: David Norton Date: Wed, 21 Jun 2006 22:23:42 +0000 Subject: [PATCH] Added tabs: Tags, Files (nothing there yet) Added 'search options' toolbar on quick search (doesn't do anything yet) --- chrome/chromeFiles/content/scholar/itemPane.xul | 8 ++++++++ chrome/chromeFiles/content/scholar/overlay.js | 12 +++++++++++- chrome/chromeFiles/content/scholar/overlay.xul | 15 +++++++++++++-- .../chromeFiles/skin/default/scholar/overlay.css | 5 +++++ 4 files changed, 37 insertions(+), 3 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/itemPane.xul b/chrome/chromeFiles/content/scholar/itemPane.xul index 72ddf15977..934b36c275 100644 --- a/chrome/chromeFiles/content/scholar/itemPane.xul +++ b/chrome/chromeFiles/content/scholar/itemPane.xul @@ -9,6 +9,8 @@ + + @@ -42,6 +44,12 @@ + + + + \ No newline at end of file diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js index 9f507645de..ab2500c54d 100644 --- a/chrome/chromeFiles/content/scholar/overlay.js +++ b/chrome/chromeFiles/content/scholar/overlay.js @@ -99,6 +99,7 @@ var ScholarPane = new function() itemsView.unregister(); document.getElementById('tb-search').value = ""; + document.getElementById('scholar-search-options').hidden = true; if(collectionsView.selection.count == 1 && collectionsView.selection.currentIndex != -1) { @@ -169,7 +170,16 @@ var ScholarPane = new function() function search() { if(itemsView) - itemsView.searchText(document.getElementById('tb-search').value); + { + searchVal = document.getElementById('tb-search').value; + itemsView.searchText(searchVal); + + //do something about granularity + //document.getElementById('scholar-search-options').getElementsByAttribute('checked','true')[0].label + + document.getElementById('scholar-search-options').hidden = searchVal == ""; + } + } function getCollectionsView() diff --git a/chrome/chromeFiles/content/scholar/overlay.xul b/chrome/chromeFiles/content/scholar/overlay.xul index d6dfe01457..2cccbad89e 100644 --- a/chrome/chromeFiles/content/scholar/overlay.xul +++ b/chrome/chromeFiles/content/scholar/overlay.xul @@ -70,8 +70,19 @@