зеркало из https://github.com/mozilla/gecko-dev.git
Bug 365002 - newFolder/Separator methods should not try to focus the controller's view. r=sspitzer.
This commit is contained in:
Родитель
ad3b0edb52
Коммит
e24cbab04c
|
@ -1167,7 +1167,6 @@ PlacesController.prototype = {
|
||||||
var txn = new PlacesCreateFolderTransaction(value.value, ip.folderId,
|
var txn = new PlacesCreateFolderTransaction(value.value, ip.folderId,
|
||||||
ip.index);
|
ip.index);
|
||||||
PlacesUtils.tm.doTransaction(txn);
|
PlacesUtils.tm.doTransaction(txn);
|
||||||
this._view.focus();
|
|
||||||
view.restoreSelection();
|
view.restoreSelection();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1181,7 +1180,6 @@ PlacesController.prototype = {
|
||||||
throw Cr.NS_ERROR_NOT_AVAILABLE;
|
throw Cr.NS_ERROR_NOT_AVAILABLE;
|
||||||
var txn = new PlacesCreateSeparatorTransaction(ip.folderId, ip.index);
|
var txn = new PlacesCreateSeparatorTransaction(ip.folderId, ip.index);
|
||||||
PlacesUtils.tm.doTransaction(txn);
|
PlacesUtils.tm.doTransaction(txn);
|
||||||
this._view.focus();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче