$("#location_releases").html("<%= j render(@location_releases) %>"); $("form input[type='search']").val("<%= params[:query] %>"); $("#location_releases_pagination").html("<%= j will_paginate(@location_releases) %>"); $("#selected_releases_form").attr('data-releasable-ids', JSON.stringify([])); $("#total_entries").val(<%= @location_releases.total_entries %>);