Double-check that the element exists.

        Patch by fu. 

diffs (13 lines):

diff -r d6718902899b -r df0e44320be3 htdocs/js/talkpost.js
--- a/htdocs/js/talkpost.js     Wed Nov 17 15:16:34 2010 +0800
+++ b/htdocs/js/talkpost.js     Wed Nov 17 15:25:38 2010 +0800
@@ -231,7 +231,8 @@ function subjectIconChange(icon) {
 
 function showRandomIcon() {
     var randomicon = document.getElementById("randomicon");
-    randomicon.setAttribute("class", "randomicon");
+    if (randomicon)
+        randomicon.setAttribute("class", "randomicon");
 }
 
 function randomicon() {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to