<% if @results[:options].any? %>
  feedbin.modalBox('<%= j render partial: "choices", locals: { options: @results[:options].first } %>');
<% elsif @results[:success].any? %>
  feedbin.updateFeeds('<%= j render partial: 'feeds/feeds', locals: {collections: @collections, saved_searches: @saved_searches, tags: @tags, feeds: @feeds} %>');
  feedbin.showNotification('You have subscribed.');
  $("[data-feed-id=<%= @click_feed %>] a").click();
  $('.feeds').animate({
    scrollTop: feedbin.scrollTo($("[data-feed-id=<%= @click_feed %>]"), $('.feeds'))
  }, 200);
  feedbin.updateTitle('<%= j @user.title_with_count %>')
<% else %>
  feedbin.showNotification('No feed found.');
<% end %>

<% if @results[:options].any? %>
  feedbin.modalBox('<%= j render partial: "choices", locals: { options: @results[:options].first } %>');
<% elsif @results[:success].any? %>
  feedbin.updateFeeds('<%= j render partial: 'feeds/feeds', locals: {collections: @collections, saved_searches: @saved_searches, tags: @tags, feeds: @feeds} %>');
  feedbin.showNotification('You have subscribed.');
  $("[data-feed-id=<%= @click_feed %>] a").click();
  feedbin.hideSubscribe()
  $('.feeds').animate({
    scrollTop: feedbin.scrollTo($("[data-feed-id=<%= @click_feed %>]"), $('.feeds'))
  }, 200);
  feedbin.updateTitle('<%= j @user.title_with_count %>')
<% else %>
  feedbin.showNotification('No feed found.');
<% end %>

Hide subscribe after successful subscription.
Hide subscribe after successful subscription.
