Refactors state management
[mkjsf-moved-to-github.git] / src / META-INF / resources / pz2utils / fieldlisteners.js
index 300d223..b0a3e6a 100644 (file)
               console.log('Making request for pz2watch:activeclientsFieldRecord');\r
               jsf.ajax.request(sourcecomp, null,{render: "pz2watch:activeclientsFieldRecord"});       \r
             }\r
-            ,2000);\r
+            ,1000);\r
     } else {\r
-       console.log("No further updates from server requested");\r
-       jsf.ajax.request(sourcecomp, null,{render: renderWhileActiveclientsRecord});\r
+       //console.log("No further updates from server requested");\r
     }\r
   }\r
 \r
@@ -83,7 +82,7 @@
       var stateKeyDoc = StringtoXML(field.textContent || field.text);\r
       var stateKeyValue = stateKeyDoc.childNodes[0].getAttribute("value");\r
       //console.log('Application hash update detected. New value: ' + stateKeyValue);\r
-      if (stateKeyValue != window.location.hash) {\r
+      if (stateKeyValue !== window.location.hash) {\r
         window.location.hash = stateKeyValue;\r
         //console.log("Browsers hash updated accordingly.");\r
       } else {\r