mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
Bug 459438 - Support bulk tagging for multiple history items (r=dietrich)
This commit is contained in:
parent
2563c4acf5
commit
b0258596ee
@ -195,7 +195,12 @@ var gEditItemOverlay = {
|
||||
this._allTags = [];
|
||||
this._itemIds = aItemIdList;
|
||||
var nodeToCheck = 0;
|
||||
for (var i = 0; i < this._itemIds.length; i++) {
|
||||
for (var i = 0; i < aItemIdList.length; i++) {
|
||||
if (aItemIdList[i] instanceof Ci.nsIURI) {
|
||||
this._uris[i] = aItemIdList[i];
|
||||
this._itemIds[i] = -1;
|
||||
}
|
||||
else
|
||||
this._uris[i] = PlacesUtils.bookmarks.getBookmarkURI(this._itemIds[i], {});
|
||||
this._tags[i] = PlacesUtils.tagging.getTagsForURI(this._uris[i], {});
|
||||
if (this._tags[i].length < this._tags[nodeToCheck].length)
|
||||
|
@ -683,7 +683,8 @@ var PlacesOrganizer = {
|
||||
else if (!aSelectedNode && aNodeList[0]) {
|
||||
var itemIds = [];
|
||||
for (var i = 0; i < aNodeList.length; i++) {
|
||||
if (!PlacesUtils.nodeIsBookmark(aNodeList[i])) {
|
||||
if (!PlacesUtils.nodeIsBookmark(aNodeList[i]) &&
|
||||
!PlacesUtils.nodeIsURI(aNodeList[i])) {
|
||||
detailsDeck.selectedIndex = 0;
|
||||
var selectItemDesc = document.getElementById("selectItemDescription");
|
||||
var itemsCountLabel = document.getElementById("itemsCountText");
|
||||
@ -693,7 +694,8 @@ var PlacesOrganizer = {
|
||||
[aNodeList.length]);
|
||||
return;
|
||||
}
|
||||
itemIds[i] = PlacesUtils.getConcreteItemId(aNodeList[i]);
|
||||
itemIds[i] = aNodeList[i].itemId != -1 ? aNodeList[i].itemId :
|
||||
PlacesUtils._uri(aNodeList[i].uri);
|
||||
}
|
||||
detailsDeck.selectedIndex = 1;
|
||||
gEditItemOverlay.initPanel(itemIds,
|
||||
|
Loading…
Reference in New Issue
Block a user