From 19a6ee894ca8ba4cf3bcd4effe6191ee5df07ef8 Mon Sep 17 00:00:00 2001 From: "beng%bengoodger.com" Date: Thu, 9 Mar 2006 22:03:26 +0000 Subject: [PATCH] 329956 - add bookmark button on toolbar no longer works. r=joe@retrovirus.com git-svn-id: svn://10.0.0.236/trunk@192112 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/base/content/browser.js | 4 ++-- mozilla/browser/components/places/content/controller.js | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mozilla/browser/base/content/browser.js b/mozilla/browser/base/content/browser.js index 53f752a12ca..cd3208819b1 100644 --- a/mozilla/browser/base/content/browser.js +++ b/mozilla/browser/base/content/browser.js @@ -6411,10 +6411,10 @@ var PlacesCommandHook = { var currentURI = getBrowser().selectedBrowser.webNavigation.currentURI; var bms = PlacesController.bookmarks; if (bms.isBookmarked(currentURI)) { - this.showBookmarkProperties(); + PlacesController.showBookmarkProperties(currentURI); } else { bms.insertItem(bms.bookmarksRoot, currentURI, -1); - this._updateControlStates(); + this.updateTagButton(); } } }; diff --git a/mozilla/browser/components/places/content/controller.js b/mozilla/browser/components/places/content/controller.js index 1e43a1c87d7..7e5bac40e34 100755 --- a/mozilla/browser/components/places/content/controller.js +++ b/mozilla/browser/components/places/content/controller.js @@ -832,10 +832,9 @@ var PlacesController = { if (!this.bookmarks.isBookmarked(bookmarkURI)) return; - var view = this._activeView.browserWindow; - view.openDialog("chrome://browser/content/places/bookmarkProperties.xul", - "", "width=600,height=400,chrome,dependent,modal,resizable", - bookmarkURI, this); + window.openDialog("chrome://browser/content/places/bookmarkProperties.xul", + "", "width=600,height=400,chrome,dependent,modal,resizable", + bookmarkURI, this); }, /**