mirror of
https://github.com/moodle/moodle.git
synced 2025-05-04 15:27:34 +02:00
"REPOSITORY/MDL-13766, check varible before setting style"
This commit is contained in:
parent
011016a9c0
commit
0ce17b662f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user