From 85e98ae5a98297c9111c667ec087c5ff52e6ca75 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Wed, 6 Aug 2003 02:58:52 +0000 Subject: [PATCH] Hide webpanels checkbox for folders/separators. --- browser/components/bookmarks/content/bookmarksProperties.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/components/bookmarks/content/bookmarksProperties.js b/browser/components/bookmarks/content/bookmarksProperties.js index 28f0c4cc6b3..69b5cb0e0b7 100644 --- a/browser/components/bookmarks/content/bookmarksProperties.js +++ b/browser/components/bookmarks/content/bookmarksProperties.js @@ -199,6 +199,10 @@ function Init() var isSeparator = BookmarksUtils.resolveType(resource) == "BookmarkSeparator"; if (isContainerFlag || isSeparator) { + // Hide the "Load in sidebar" checkbox unless it's a bookmark. + var webpanelCheckbox = document.getElementById("webpanel"); + webpanelCheckbox.hidden = true; + // If it is a folder, it has no URL or Keyword document.getElementById("locationrow").setAttribute("hidden", "true"); document.getElementById("shortcutrow").setAttribute("hidden", "true");