only firing low/0 hits events on mresult page and not rresult page :)
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Nov 2005 14:53:30 +0000 (14:53 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Nov 2005 14:53:30 +0000 (14:53 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2055 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 6132f65..d8052a3 100644 (file)
@@ -28,11 +28,13 @@ function resultFinalPageIndex() {
 /* set the search result info, number of hits, which results we're 
        displaying, links to the next/prev pages, etc. */
 function resultSetHitInfo() { 
-       if(getHitCount() <= lowHitCount)
-               runEvt('result', 'lowHits');
-       if(getHitCount() == 0) {
-               runEvt('result', 'zeroHits');
-               return;
+       if( findCurrentPage() == MRESULT ) {
+               if(getHitCount() <= lowHitCount)
+                       runEvt('result', 'lowHits');
+               if(getHitCount() == 0) {
+                       runEvt('result', 'zeroHits');
+                       return;
+               }
        }
 
        var c;