"REPOSITORY/MDL-13766, check varible before setting style"

This commit is contained in:
dongsheng 2009-02-24 08:24:58 +00:00
parent 011016a9c0
commit 0ce17b662f

View File

@ -364,7 +364,9 @@ _client.print_instances = function() {
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';
if(el){
el.style.background = 'transparent';
}
}
this.style.background = '#CCC';
var re = /repo-call-$suffix-(\d+)/i;