зеркало из https://github.com/mozilla/pjs.git
Bug 405344 - "Clicking star should not select address bar (Inconsistent behaviour)" [p=dao@mozilla.com (D��o Gottwald) r=Mano a=blocking-firefox3+]
This commit is contained in:
Родитель
e69ceeec07
Коммит
39443eab23
|
@ -786,7 +786,11 @@ var PlacesStarButton = {
|
|||
},
|
||||
|
||||
onClick: function PSB_onClick(aEvent) {
|
||||
PlacesCommandHook.bookmarkCurrentPage(this._starred);
|
||||
if (aEvent.button == 0)
|
||||
PlacesCommandHook.bookmarkCurrentPage(this._starred);
|
||||
|
||||
// don't bubble to the textbox so that the address won't be selected
|
||||
aEvent.stopPropagation();
|
||||
},
|
||||
|
||||
// nsINavBookmarkObserver
|
||||
|
|
|
@ -302,7 +302,7 @@
|
|||
onclick="goDoCommand('safebrowsing-show-warning')"/>
|
||||
#endif
|
||||
<image id="star-button"
|
||||
onclick="if (event.button == 0) PlacesStarButton.onClick(event);"/>
|
||||
onclick="PlacesStarButton.onClick(event);"/>
|
||||
<image id="go-button" chromedir="&locale.dir;"
|
||||
tooltiptext="&goEndCap.tooltip;"
|
||||
onclick="handleURLBarCommand(event);"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче