Project

General

Profile

« Previous | Next » 

Revision 35488

In search pages show modulebox on the right when there is no refine box/ In search forms set component and view inside the Jroure url

View differences:

search.js
11 11

  
12 12
function init() {
13 13
    // hide 'In this section' when there are results
14
    if (($$('div.searchResults').length > 0) && ($('maininner') !== null) && ($('sidebar-a') !== null)) {
14
    //if (($$('div.searchResults').length > 0) && ($('maininner') !== null) && ($('sidebar-a') !== null)) {
15
    //hide when there is the refine Box
16
    if (($$('div.refineBox').length > 0) && ($('maininner') !== null) && ($('sidebar-a') !== null)) {
15 17
        $('maininner').setStyle('width', $('maininner').offsetWidth + $('sidebar-a').offsetWidth);
16 18
        $('sidebar-a').destroy();
17
    }
19
    }    
18 20
    // view more
19 21
    $$('div.searchCol, div.flowWrapper').each(function (statistic) {
20 22
        var viewMore = statistic.getElement('span.viewmore');

Also available in: Unified diff