зеркало из https://github.com/mozilla/pjs.git
Bug 396556 - Bookmarks menu does not update when adding/deleting/reloading livemarks or when adding/deleting bookmarks. r=dietrich.
This commit is contained in:
Родитель
7e2cf05ad0
Коммит
382a349391
|
@ -257,6 +257,7 @@
|
|||
|
||||
if (element) {
|
||||
element.node = child;
|
||||
element.node.viewIndex = 0;
|
||||
if (child.icon)
|
||||
element.setAttribute("image", child.icon.spec);
|
||||
|
||||
|
|
|
@ -238,6 +238,7 @@
|
|||
button.setAttribute("image", child.icon.spec);
|
||||
button.className = "menuitem-iconic bookmark-item";
|
||||
button.node = child;
|
||||
button.node.viewIndex = 0;
|
||||
if (before)
|
||||
this.insertBefore(button, before);
|
||||
else
|
||||
|
@ -521,7 +522,10 @@
|
|||
else if (PlacesUtils.nodeIsContainer(aNode)) {
|
||||
if (PlacesUtils.nodeIsLivemarkContainer(aNode)) {
|
||||
var folder = aNode.itemId;
|
||||
var siteURIString = PlacesUtils.livemarks.getSiteURI(folder).spec;
|
||||
var siteURIString = "";
|
||||
var siteURI = PlacesUtils.livemarks.getSiteURI(folder);
|
||||
if (siteURI)
|
||||
siteURIString = siteURI.spec;
|
||||
if (siteURIString) {
|
||||
if (button.getAttribute("siteURI") != siteURIString)
|
||||
button.setAttribute("siteURI", siteURIString);
|
||||
|
|
|
@ -134,8 +134,13 @@ interface nsINavHistoryResultNode : nsISupports
|
|||
|
||||
/**
|
||||
* Value with undefined meaning for use by the view. Its initial value will
|
||||
* be -1. The tree view uses this value to indicate the row in the tree that
|
||||
* this node is at. Other views may use this value however they choose.
|
||||
* be -1. The result implementation treats nodes with this property set to
|
||||
* -1 as invisible!
|
||||
*
|
||||
* View-implementations may use this value to track the node index in the
|
||||
* view, e.g. the tree view uses this value to indicate the row in the
|
||||
* tree that this node is at. Other views may choose not to use this, but
|
||||
* should inititalize this value to anything but -1 for visible nodes.
|
||||
*/
|
||||
attribute long viewIndex;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче