зеркало из https://github.com/mozilla/pjs.git
This commit is contained in:
Родитель
84cd2088bc
Коммит
755a82f8d2
|
@ -51,9 +51,12 @@ var gMoveBookmarksDialog = {
|
||||||
this._nodes = window.arguments[0];
|
this._nodes = window.arguments[0];
|
||||||
this._tm = window.arguments[1];
|
this._tm = window.arguments[1];
|
||||||
|
|
||||||
|
// setTimeout until bug 373944 is fixed
|
||||||
|
setTimeout(function(aSelf) {
|
||||||
// select and expand the root node
|
// select and expand the root node
|
||||||
this.foldersTree.selectFolders([PlacesUtils.bookmarksRootId]);
|
aSelf.foldersTree.selectFolders([PlacesUtils.bookmarksRootId]);
|
||||||
this.foldersTree.selectedNode.containerOpen = true;
|
aSelf.foldersTree.selectedNode.containerOpen = true;
|
||||||
|
}, 0, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
onOK: function MBD_onOK(aEvent) {
|
onOK: function MBD_onOK(aEvent) {
|
||||||
|
|
|
@ -54,6 +54,13 @@ var PlacesOrganizer = {
|
||||||
_content: null,
|
_content: null,
|
||||||
|
|
||||||
init: function PO_init() {
|
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._places = document.getElementById("placesList");
|
||||||
this._content = document.getElementById("placeContent");
|
this._content = document.getElementById("placeContent");
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,13 @@
|
||||||
this.controllers.appendController(this._controller);
|
this.controllers.appendController(this._controller);
|
||||||
|
|
||||||
// Force an initial build.
|
// 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>
|
]]></constructor>
|
||||||
|
|
||||||
<destructor><![CDATA[
|
<destructor><![CDATA[
|
||||||
|
|
Загрузка…
Ссылка в новой задаче