• Son Nguyen's avatar
    Be flexible in the number to results shown on a page Bug#781989 · f3162f80
    Son Nguyen authored
    
    
    1. Added a new feature to build_pagination:
     - setlimit: enable=true/disable=false choosing limit values
     from the array limitoptions
     - the array limitoptions (page sizes) has been hardcoded
    inside build_pagination function.
    
    2. Enable this feature to group member search and porfolio pages search
    Note: The default number of pages in Porfolio/Pages has been changed to
    20
    
    To enable this feature
    1. pass 'setlimit' => true to build_pagination function
    2. $js = "addLoadEvent(function() {p = {$pagination['javascript']}});";
    3. $smarty->assign('INLINEJAVASCRIPT', $js);
    
    Change-Id: Ib44b28d50895c6ea604bb1aedaebae3a3f1bfc1a
    Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
    f3162f80