mirror of
https://github.com/moodle/moodle.git
synced 2025-05-06 00:06:51 +02:00
"REPOSITORY/MDL-13766, check varible before setting style"
This commit is contained in:
parent
011016a9c0
commit
0ce17b662f
@ -364,8 +364,10 @@ _client.print_instances = function() {
|
|||||||
for(var cc in _client.repos){
|
for(var cc in _client.repos){
|
||||||
var tmp_id = 'repo-call-$suffix-'+ _client.repos[cc].id;
|
var tmp_id = 'repo-call-$suffix-'+ _client.repos[cc].id;
|
||||||
var el = document.getElementById(tmp_id);
|
var el = document.getElementById(tmp_id);
|
||||||
|
if(el){
|
||||||
el.style.background = 'transparent';
|
el.style.background = 'transparent';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.style.background = '#CCC';
|
this.style.background = '#CCC';
|
||||||
var re = /repo-call-$suffix-(\d+)/i;
|
var re = /repo-call-$suffix-(\d+)/i;
|
||||||
var id = this.id.match(re);
|
var id = this.id.match(re);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user