1eventsFilter = function(){ 2 if ( jQuery('.events-bar').length ) { 3 4 jQuery(document).on('change', '.events-bar #artists_filter', this ,function(e){ 5 var $bar = jQuery(this).parents('.events-bar') 6 var $list = jQuery(this).parents('.events-bar').next('.concerts-list') 7 var artist_id = jQuery(this).val(); 8 9 if(artist_id == 'all') { 10 $list.find('.nothing-found').remove() 11 $list.find('article').fadeIn(); 12 }else{ 13 $list.find('article').hide(); 14 $list.find('.nothing-found').remove() 15 if ( $list.find('article.artist-'+artist_id).length ) { 16 $list.find('article.artist-'+artist_id).fadeIn(); 17 }else{ 18 19 var noFind = jQuery('<article/>', { 20 'text': ironmusic_vars.i18n.no_events, 21 'class': 'nothing-found' 22 }) 23 $list.find('.nothing-found').remove() 24 $list.append(noFind) 25 } 26 } 27 28 }) 29 30 } 31} 32 33jQuery(document).ready(function($){ 34// eventsFilter() 35}) 36 37function redirect_event_archive(artist_id) { 38 $ = jQuery; 39 var $params = getParams(); 40 var redirect_url = (event_url.indexOf('?') != -1 ) ? window.location.origin+window.location.pathname : event_url; 41 $params['artist-id'] = artist_id; 42 first_param = true; 43 44 $.each($params, function(index, val) { 45 if (val != 'all' && index != 'paged') { 46 if(first_param) { 47 first_param = false; 48 redirect_url += '?'+index+'='+val; 49 } 50 else { 51 redirect_url += '&'+index+'='+val; 52 } 53 } 54 55 }); 56 57 window.location.href=redirect_url; 58 59} 60 61function getParams(){ 62 var oGetVars = {}; 63 64 if (location.search.length > 1) { 65 for (var aItKey, nKeyId = 0, aCouples = location.search.substr(1).split("&"); nKeyId < aCouples.length; nKeyId++) { 66 aItKey = aCouples[nKeyId].split("="); 67 oGetVars[decodeURIComponent(aItKey[0])] = aItKey.length > 1 ? decodeURIComponent(aItKey[1]) : ""; 68 } 69 } 70 71 return oGetVars; 72}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.