home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / firefox-3.0.14 / chrome / browser.jar / content / browser / bookmarks / bookmarksPanel.js next >
Encoding:
JavaScript  |  2008-03-13  |  836 b   |  23 lines

  1. //@line 37 "/build/buildd/firefox-3.0-3.0.14+build2+nobinonly/build-tree/mozilla/browser/components/places/content/bookmarksPanel.js"
  2.  
  3. function init() {
  4.   document.getElementById("bookmarks-view").place =
  5.     "place:queryType=1&folder=" + window.top.PlacesUIUtils.allBookmarksFolderId;
  6. }
  7.  
  8. function searchBookmarks(aSearchString) {
  9.   var tree = document.getElementById('bookmarks-view');
  10.   if (!aSearchString)
  11.     tree.place = tree.place;
  12.   else
  13.     tree.applyFilter(aSearchString,
  14.                      [PlacesUtils.bookmarksMenuFolderId,
  15.                       PlacesUtils.unfiledBookmarksFolderId,
  16.                       PlacesUtils.toolbarFolderId]);
  17. }
  18.  
  19. window.addEventListener("SidebarFocused",
  20.                         function()
  21.                           document.getElementById("search-box").focus(),
  22.                         false);
  23.