From f8dff8206f23ae4f5d93a6a63992befa0542c844 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Thu, 12 Mar 2009 08:44:23 +0000 Subject: [PATCH] "REPOSITORY/MDL-13766, sometimes element id is missing, fixed" --- repository/javascript.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } } } -- 2.39.5