re-enabled client ID caching because it makes a noticable speed difference
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Nov 2005 17:20:34 +0000 (17:20 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Nov 2005 17:20:34 +0000 (17:20 +0000)
...need to debug the caching more so IE won't blow up

git-svn-id: svn://svn.open-ils.org/ILS/trunk@2022 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/mresult.js

index 9c84c1a..8d18919 100644 (file)
@@ -46,8 +46,8 @@ function mresultHandleCount(r) {
 function mresultCollectIds(method) {
 
        if(getOffset() == 0) {
-               //idsCookie.put(COOKIE_IDS,"");
-               //idsCookie.write();
+               idsCookie.put(COOKIE_IDS,"");
+               idsCookie.write();
 
        } else {
                var c = JSON2js(idsCookie.get(COOKIE_IDS));
@@ -89,8 +89,8 @@ function mresultSetRecords(idstruct) {
                ranks[x] = parseFloat(idstruct[x - o][1]);
                onlyrecord[x] = parseInt(idstruct[x - o][2]);
        }
-       //idsCookie.put(COOKIE_IDS, js2JSON({ recs: records, ranks : ranks }) );
-       //idsCookie.write();
+       idsCookie.put(COOKIE_IDS, js2JSON({ recs: records, ranks : ranks }) );
+       idsCookie.write();
        TOPRANK = ranks[getOffset()];
 }