]> git.mjollnir.org Git - moodle.git/commitdiff
"REPOSITORY/MDL-13766, check varible before setting style"
authordongsheng <dongsheng>
Tue, 24 Feb 2009 08:24:58 +0000 (08:24 +0000)
committerdongsheng <dongsheng>
Tue, 24 Feb 2009 08:24:58 +0000 (08:24 +0000)
repository/javascript.php

index fda8c65ae57f89606bfe56ea596f914dd0198fdc..50706986db3af0b050301510f87dfc40263582a6 100644 (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;