From 2eb332bf65536e6842d0c6e463daa7394c69417f Mon Sep 17 00:00:00 2001 From: dongsheng Date: Tue, 24 Feb 2009 02:48:19 +0000 Subject: [PATCH] "REPOSITORY/MSL-13766, highlight active repository on the left listing" --- repository/javascript.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/repository/javascript.php b/repository/javascript.php index 5fd46196bf..fda8c65ae5 100644 --- a/repository/javascript.php +++ b/repository/javascript.php @@ -360,6 +360,13 @@ _client.print_instances = function() { link.appendChild(icon); link.className = 'fp-repo-name'; link.onclick = function() { + // highlight active repo + for(var cc in _client.repos){ + var tmp_id = 'repo-call-$suffix-'+ _client.repos[cc].id; + var el = document.getElementById(tmp_id); + el.style.background = 'transparent'; + } + this.style.background = '#CCC'; var re = /repo-call-$suffix-(\d+)/i; var id = this.id.match(re); repository_client_$suffix.req(id[1], ''); -- 2.39.5