Changes project title and description.
[mkjsf-moved-to-github.git] / src / META-INF / resources / pz2utils / listeners.js
index 84cd19b..91ef576 100644 (file)
@@ -7,7 +7,7 @@
   {\r
        //console.log('rendering ' + renderWhileActiveclients);\r
        var sourcecomp = document.getElementById("pz2watch:activeclientsField");\r
-    jsf.ajax.request(sourcecomp, null,{render: renderWhileActiveclients + " pz2watch:errorMessages"});\r
+    jsf.ajax.request(sourcecomp, null,{render: renderWhileActiveclients});\r
     if (doRefresh) {\r
                //console.log('Will do another ajax request after a timeout in order to render: pz2watch:activeclientsField');  \r
            renderTargetsReqVar=setTimeout(\r
@@ -50,7 +50,7 @@
              if (window.location.hash != stateKey.value) {\r
                //console.log("updating stateKey with new browser hash: " + window.location.hash);\r
                stateKey.value = window.location.hash;\r
-               if (! stateKey.value) window.location.hash = '#initial';\r
+               if (! stateKey.value) window.location.hash = '#1';\r
                stateKey.onchange();\r
              } else {\r
                //console.log("State hash already has the value of the new browser hash - not updating state hash");\r
 \r
   // Sets up field update listeners\r
   var setUpListeners = function () {\r
-    //console.log("Starts tracking activeclientsField");\r
+    //console.log("Starts tracking activeclientsField, for 'show' and 'record'");\r
     fieldListeners.addListener("pz2watch:activeclientsField", new ActiveclientsListener());\r
     fieldListeners.addListener("pz2watch:activeclientsFieldRecord", new ActiveclientsRecordListener());\r
     if (trackHistory) {\r