зеркало из https://github.com/mozilla/pjs.git
More utils conversions for bug 384370 (irc-r=mano)
This commit is contained in:
Родитель
c5ac5a30fa
Коммит
809c001c44
|
@ -600,7 +600,7 @@ var BookmarksEventHandler = {
|
|||
// is middle-clicked or when a non-bookmark item except for Open in Tabs)
|
||||
// in a bookmarks menupopup is middle-clicked.
|
||||
if (target.localName == "menu" || target.localName == "toolbarbutton")
|
||||
PlacesUtils.openContainerNodeInTabs(target.node, aEvent);
|
||||
PlacesUIUtils.openContainerNodeInTabs(target.node, aEvent);
|
||||
}
|
||||
else
|
||||
this.onCommand(aEvent);
|
||||
|
|
|
@ -783,7 +783,7 @@ var gEditItemOverlay = {
|
|||
// XXXmano: add a separate "New Folder" string at some point...
|
||||
var defaultLabel = this._element("newFolderButton").label;
|
||||
var txn = PlacesUIUtils.ptm.createFolder(defaultLabel, ip.itemId, ip.index);
|
||||
PlacesUtils.ptm.doTransaction(txn);
|
||||
PlacesUIUtils.ptm.doTransaction(txn);
|
||||
this._folderTree.focus();
|
||||
this._folderTree.selectItems([this._lastNewItem]);
|
||||
this._folderTree.startEditing(this._folderTree.view.selection.currentIndex,
|
||||
|
|
Загрузка…
Ссылка в новой задаче