Ignore:
Timestamp:
2019-07-02T11:32:34+12:00 (5 years ago)
Author:
davidb
Message:

Javascript code to implements favourites. Done in a way to be compatible with keeping the original berry-picking code functional also

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/facet-scripts.js

    r33154 r33259  
    5757            $("#resultsArea").html("");
    5858            $("#resultsArea").html(response.substring(response.indexOf(">") + 1, response.lastIndexOf("<")));
    59                 checkout(); // called to add back in berries (if berrybasket active)
     59            if(gs.cgiParams.berrybasket == "on") {
     60                    berryCheckout(); // called to add back in berries (if berrybasket active)
     61            }
     62            if(gs.cgiParams.favouritesbasket == "on") {
     63                    favouritesCheckout(); // called to add back in favourites icons (if favouritesbasket active)
     64            }
    6065        });
    6166}
Note: See TracChangeset for help on using the changeset viewer.