From: dongsheng Date: Thu, 12 Mar 2009 08:44:23 +0000 (+0000) Subject: "REPOSITORY/MDL-13766, sometimes element id is missing, fixed" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f8dff8206f23ae4f5d93a6a63992befa0542c844;p=moodle.git "REPOSITORY/MDL-13766, sometimes element id is missing, fixed" --- diff --git a/repository/javascript.php b/repository/javascript.php index 7105126349..1f1f72d145 100644 --- a/repository/javascript.php +++ b/repository/javascript.php @@ -931,14 +931,16 @@ _client.makepath = function() { var el = new YAHOO.util.Element(link.id); el.id = _client.repositoryid; el.path = _client.ds.path[i].path; + el.link_id = link.id; el.on('contentReady', function() { - var path_link = document.getElementById(link.id); + var path_link = document.getElementById(this.link_id); path_link.id = this.id; - path_link.path = this.path + path_link.path = this.path; path_link.onclick = function() { repository_client_$suffix.req(this.id, this.path); } }); + link = null; } } }