function graphClickEvent(event, array) { if(array[0]) { var manufacturer = array[0]._model.label; var url = window.location.href; if(window.location.search.charAt(0) == '?') { url += '&'; } else { url += '?'; } url += 'manufacturer=' + manufacturer; if(window.location.search.indexOf('token=') === -1) { url += '&token=' + getToken(); } window.location.href = url; } } //var spinner; $(function() { /*$('.manufacturer').click(function() { var $self = $(this); var $next = $self.next(); if($next.hasClass('models')) { $next.toggle(); return; } $self.after('
Model | Searches |
---|---|
' + v.model + ' | ' + v.count + ' |