diff --git a/web/app/assets/javascripts/findBand.js b/web/app/assets/javascripts/findBand.js
index a8a9714db..2475521d6 100644
--- a/web/app/assets/javascripts/findBand.js
+++ b/web/app/assets/javascripts/findBand.js
@@ -91,24 +91,19 @@
for (ii=0, len=bands.length; ii < len; ii++) {
bb = bands[ii];
instr_logos = '';
- /*for (var jj=0, ilen=bb['instruments'].length; jj
';
bVals = {
avatar_url: context.JK.resolveAvatarUrl(bb.photo_url),
profile_url: "/#/profile/" + bb.id,
band_name: bb.name,
band_location: bb.city + ', ' + bb.state,
+ genres: bgenres,
instruments: instr_logos,
biography: bb['biography'],
follow_count: bb['follow_count'],
recording_count: bb['recording_count'],
session_count: bb['session_count'],
band_id: bb['id'],
- band_follow_template: players,
+ band_player_template: players,
band_action_template: band_actions
};
var band_row = context.JK.fillTemplate(mTemplate, bVals);
@@ -171,7 +172,7 @@
evt.stopPropagation();
var newFollowing = {};
- newFollowing.user_id = $(this).parent().data('band-id');
+ newFollowing.band_id = $(this).parent().data('band-id');
var url = "/api/users/" + context.JK.currentUserId + "/followings";
$.ajax({
type: "POST",
@@ -182,7 +183,7 @@
processData: false,
success: function(response) {
// remove the orange look to indicate it's not selectable
- $('div[data-band-id='+newFollowing.user_id+'] .search-m-follow').removeClass('button-orange');
+ $('div[data-band-id='+newFollowing.band_id+'] .search-m-follow').removeClass('button-orange');
},
error: app.ajaxError
});
diff --git a/web/app/assets/stylesheets/client/band.css.scss b/web/app/assets/stylesheets/client/band.css.scss
index 18f505eb1..63152401a 100644
--- a/web/app/assets/stylesheets/client/band.css.scss
+++ b/web/app/assets/stylesheets/client/band.css.scss
@@ -270,3 +270,22 @@
.band-profile-block-city {
font-size:12px;
}
+
+#band-filter-results {
+ margin: 0 10px 5px 10px;
+ overflow: auto;
+ height: 100%;
+ width: 100%;
+}
+
+.band-list-result {
+ padding-top: 5px;
+ padding-right: 5px;
+ padding-left: 5px;
+}
+
+.band-wrapper {
+ overflow: auto;
+ height: 480px;
+ width: 100%;
+}
diff --git a/web/app/assets/stylesheets/client/web_filter.css.scss b/web/app/assets/stylesheets/client/web_filter.css.scss
new file mode 100644
index 000000000..b84bc97ce
--- /dev/null
+++ b/web/app/assets/stylesheets/client/web_filter.css.scss
@@ -0,0 +1,70 @@
+@import "client/common.css.scss";
+@charset "UTF-8";
+
+.filter-results {
+
+ li {
+ position: relative;
+ border-bottom:solid 1px shade($ColorElementPrimary, 20);
+ clear:both;
+ }
+
+ li strong {
+ font-weight:bold;
+ }
+
+ li.offline {
+ background-color: shade($ColorElementPrimary, 20);
+ color: shade($text, 10);
+ opacity:0.5;
+ ms-filter: "alpha(opacity=50)";
+ }
+
+ .avatar-small {
+ float:left;
+ padding:1px;
+ width:36px;
+ height:36px;
+ background-color:#ed3618;
+ margin:10px;
+ -webkit-border-radius:18px;
+ -moz-border-radius:18px;
+ border-radius:18px;
+ }
+
+ .avatar-small img {
+ width: 36px;
+ height: 36px;
+ -webkit-border-radius:18px;
+ -moz-border-radius:18px;
+ border-radius:18px;
+ }
+
+ li a {
+ color:#B3DD15;
+ }
+
+ li a:hover {
+ color:#FFF;
+ }
+
+ .result-name {
+ float:left;
+ font-size:12px;
+ margin-top:12px;
+ font-weight:bold;
+ }
+
+ .result-location {
+ font-size:11px;
+ color:#D5E2E4;
+ font-weight:200;
+ }
+
+ .results-wrapper {
+ width: 300px;
+ overflow-y:auto;
+ overflow-x:hidden;
+ }
+}
+
diff --git a/web/app/views/api_search/index.rabl b/web/app/views/api_search/index.rabl
index 581566cd8..e7102cee9 100644
--- a/web/app/views/api_search/index.rabl
+++ b/web/app/views/api_search/index.rabl
@@ -71,7 +71,7 @@ if @search.bands_filter.present?
@search.is_follower?(band)
end
- child :genres => :genre do
+ child :genres => :genres do
attributes :genre_id, :description
end
diff --git a/web/app/views/clients/_bands.html.erb b/web/app/views/clients/_bands.html.erb
index 091244ff5..473ecf9bf 100644
--- a/web/app/views/clients/_bands.html.erb
+++ b/web/app/views/clients/_bands.html.erb
@@ -9,7 +9,7 @@
<%= form_tag('', :id => 'find-band-form') do -%>
<%= content_tag(:div, render(:partial => "web_filter", :locals => {:search_type => Search::PARAM_BAND}), :class => 'band-filter', :id => 'session-controls') %>
<%= content_tag(:div, :class => 'content-scroller') do -%>
- <%= content_tag(:div, content_tag(:div, '', :id => 'band-filter-results'), :class => 'content-wrapper band-wrapper') %>
+ <%= content_tag(:div, content_tag(:div, '', :id => 'band-filter-results', :class => 'filter-results'), :class => 'content-wrapper band-wrapper') %>
<% end -%>
<% end -%>
<% end -%>
@@ -24,24 +24,20 @@