Index: admin_templates/img/icons/icon24_pending.gif =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: admin_templates\img\icons\icon24_pending.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: admin_templates/js/tree.js =================================================================== --- admin_templates/js/tree.js (revision 13182) +++ admin_templates/js/tree.js (working copy) @@ -530,9 +530,12 @@ } TreeFolder.prototype.successCallback = function ($request, $params, $object) { - if ($params == 'reload') { + /*if ($params == 'reload') { $object.removeChildren(); - } + }*/ + + $object.removeChildren(); // will also remove "Pending ..." node + $object.Loaded = true; $object.ProcessXMLNode($request.responseXML); $object.Render(); @@ -556,6 +559,10 @@ this.Reloading = true; + // add "Pending ..." node + this.AddPendingNode(); + + // sending request to receive items Request.headers['Content-type'] = 'text/xml'; Request.makeRequest(this.LateLoadURL, false, '', this.successCallback, this.errorCallback, 'reload', this); } @@ -583,6 +590,10 @@ } if (mode == 0) { if (this.LateLoadURL && !this.Loaded) { + // add "Pending ..." node + this.AddPendingNode(); + + // sending request to receive items Request.headers['Content-type'] = 'text/xml'; Request.makeRequest(this.LateLoadURL, false, '', this.successCallback, this.errorCallback, '', this); } @@ -595,6 +606,16 @@ this.Expanding = false; } +TreeFolder.prototype.AddPendingNode = function() { + // remove all current children (including "Pending ...") + this.removeChildren(); + + // add "Pending ..." node + var $pending_item = this.AddItem(new TreeItem(TREE_PENDING_NODE.text, '#', TREE_PENDING_NODE.icon, '', 1), true); + this.locateTopItem().updateLastNodes(); + $pending_item.display(); +} + TreeFolder.prototype.collapse = function(mode) { if (!isset(mode)) mode = 0; Index: admin_templates/tree.tpl =================================================================== --- admin_templates/tree.tpl (revision 13182) +++ admin_templates/tree.tpl (working copy) @@ -54,6 +54,11 @@