зеркало из https://github.com/mozilla/pjs.git
This commit is contained in:
Родитель
7e3d3bf906
Коммит
7f85d3946a
|
@ -51,9 +51,12 @@ var gMoveBookmarksDialog = {
|
|||
this._nodes = window.arguments[0];
|
||||
this._tm = window.arguments[1];
|
||||
|
||||
// setTimeout until bug 373944 is fixed
|
||||
setTimeout(function(aSelf) {
|
||||
// select and expand the root node
|
||||
this.foldersTree.selectFolders([PlacesUtils.bookmarksRootId]);
|
||||
this.foldersTree.selectedNode.containerOpen = true;
|
||||
aSelf.foldersTree.selectFolders([PlacesUtils.bookmarksRootId]);
|
||||
aSelf.foldersTree.selectedNode.containerOpen = true;
|
||||
}, 0, this);
|
||||
},
|
||||
|
||||
onOK: function MBD_onOK(aEvent) {
|
||||
|
|
|
@ -54,6 +54,13 @@ var PlacesOrganizer = {
|
|||
_content: null,
|
||||
|
||||
init: function PO_init() {
|
||||
var self = this;
|
||||
// on timeout because of the corresponding setTimeout()
|
||||
// in the places tree binding's constructor
|
||||
setTimeout(function() { self._init(); }, 0);
|
||||
},
|
||||
|
||||
_init: function PO__init() {
|
||||
this._places = document.getElementById("placesList");
|
||||
this._content = document.getElementById("placeContent");
|
||||
|
||||
|
|
|
@ -50,7 +50,13 @@
|
|||
this.controllers.appendController(this._controller);
|
||||
|
||||
// Force an initial build.
|
||||
this.place = this.place;
|
||||
// but do it on setTimeout() for bugs #373719 and bug #373721
|
||||
// caused by a change for bug #267833
|
||||
// note the corresponding setTimeout() in PO_init()
|
||||
if (this.place) {
|
||||
var self = this;
|
||||
setTimeout(function() { self.place = self.place; }, 0);
|
||||
}
|
||||
]]></constructor>
|
||||
|
||||
<destructor><![CDATA[
|
||||
|
|
Загрузка…
Ссылка в новой задаче