From d25edb67f97d7f178529777d08cc15691d73e528 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 10 Nov 2008 18:22:02 +0000 Subject: [PATCH] Small fix to avoid ajax hangups after nonexistent element update. --- js/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/utils.js b/js/utils.js index fca82d03..877af9ad 100644 --- a/js/utils.js +++ b/js/utils.js @@ -56,6 +56,7 @@ // debug(cmd+':'+property+':'+type+':'+id); // seek element by id if there is no elemnt with given name objElement = document.getElementsByName(id)[0] || document.getElementById(id); + if(!objElement) continue; if(cmd=='as') { eval("objElement.setAttribute('"+property+"',"+data+");"); } else if(cmd=='up') { -- 2.30.2