Backed out changeset 5a6b95c47b55 (bug 1068671)

This commit is contained in:
Carsten "Tomcat" Book 2014-10-01 13:12:13 +02:00
parent c7d764da67
commit 29fad8f0d6
2 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@
let tagName = PlacesUtils.nodeIsTagQuery(elt._placesNode) ?
elt._placesNode.title : null;
if ((PlacesUtils.nodeIsFolder(elt._placesNode) &&
!PlacesUIUtils.isContentsReadOnly(elt._placesNode)) ||
!PlacesUIUtils.isContentsReadOnly(elt._placesNode) ||
PlacesUtils.nodeIsTagQuery(elt._placesNode)) {
// This is a folder or a tag container.
if (eventY - eltY < eltHeight * 0.20) {

View File

@ -1674,9 +1674,9 @@ PlacesTreeView.prototype = {
if (PlacesUtils.nodeIsSeparator(node) || PlacesUtils.isRootItem(itemId))
return false;
let parentId = PlacesUtils.getConcreteItemId(node.parent);
let parentId = node.parent.itemId;
if (parentId == PlacesUIUtils.leftPaneFolderId ||
parentId == PlacesUIUtils.allBookmarksFolderId) {
parentId == PlacesUIUtils.allBallBookmarksFolderId) {
// Note that the for the time being this is the check that actually
// blocks renaming places "roots", and not the isRootItem check above.
// That's because places root are only exposed through folder shortcuts