Author:   Lars Michelsen <[email protected]>
Date:     Thu Mar 29 11:00:31 2012 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Thu Mar 29 11:00:31 2012 +0200

Bugfix: Fixed javascript error when switching pages while an ajax call
is being processed

---

 ChangeLog                           |    2 ++
 share/frontend/nagvis-js/js/ajax.js |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f1b54ea..ad068f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,8 @@ Frontend
   * Bugfix: Fixed cloning shape objects (view_type error message)
   * Bugfix: Stateless lines - only showing the hover area when it is needed
   * Bugfix: Fixed dragging of relative labels of relative objects
+  * Bugfix: Fixed javascript error when switching pages while an ajax call is
+    being processed
 
 1.6.4
 Core
diff --git a/share/frontend/nagvis-js/js/ajax.js 
b/share/frontend/nagvis-js/js/ajax.js
index 4b426e2..cc19964 100644
--- a/share/frontend/nagvis-js/js/ajax.js
+++ b/share/frontend/nagvis-js/js/ajax.js
@@ -171,7 +171,7 @@ function getAsyncRequest(sUrl, bCacheable, callback, 
callbackParams) {
         oRequest.open("GET", sUrl+"&_t="+iNow);
         oRequest.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2005 
00:00:00 GMT");
         oRequest.onreadystatechange = function() {
-            if(oRequest.readyState == 4) {
+            if(oRequest && oRequest.readyState == 4) {
                 frontendMessageRemove('ajaxError');
                 if(oRequest.responseText.replace(/\s+/g, '').length === 0) {
                     if(bCacheable)


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to