src/jquery.azuresearch.js
//Default action when a facet receives a click
Default action when a facet receives a click
Default action when a facet receives a click
function defaultFacetClick(e) {
        e.preventDefault();
        var value = $(this).data('azuresearchFacetName') + '|' + $(this).data('azuresearchFacetValue');
        if (ls.facetsSelected.indexOf(value) != -1)
            return;
        ls.facetsSelected.push(value);
        ls.facetsApplied.onChange.call(ls.facetsSelected.slice(0));
        ls.facets.onFacetSelect.call(ls.facetsSelected.slice(0));
        search();
    }
function defaultFacetClick ( e ) { e . preventDefault ( ) ; var value = $ ( this ) . data ( 'azuresearchFacetName' ) + '|' + $ ( this ) . data ( 'azuresearchFacetValue' ) ; if ( ls . facetsSelected . indexOf ( value ) != - 1 ) return ; ls . facetsSelected . push ( value ) ; ls . facetsApplied . onChange . call ( ls . facetsSelected . slice ( 0 ) ) ; ls . facets . onFacetSelect . call ( ls . facetsSelected . slice ( 0 ) ) ; search ( ) ; }
Default action when a facet receives a click
Default action when a facet receives a click