fix for pagination and revoke and grant buttons
This commit is contained in:
parent
5b02e54f17
commit
dbc9e5a931
|
@ -52,4 +52,10 @@
|
|||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<%=
|
||||
content_tag :div, class: "bottomnav clearfix" do
|
||||
content_tag :div, paginate(@registeredsites), class: "pagination pagination-centered"
|
||||
end
|
||||
%>
|
|
@ -1 +1,16 @@
|
|||
$("#index_table").html("<%= j render 'index' %>")
|
||||
$("#index_table").html("<%= j render 'index' %>");
|
||||
var atags = $(".pagination a");
|
||||
if (atags.length > 0){
|
||||
atags.each(function(){
|
||||
var el = $(this);
|
||||
if(el.attr("href")){
|
||||
var url = "http://" + window.location.host + el.attr("href");
|
||||
uri = new URL(url);
|
||||
if(uri.searchParams.get("page")){
|
||||
$(this).attr("href","/<%= locale.to_s %>/admin/registered_sites?page=" + uri.searchParams.get("page"));
|
||||
}else{
|
||||
$(this).attr("href","/<%= locale.to_s %>/admin/registered_sites");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
|
@ -1,9 +1,4 @@
|
|||
<%= render_filter @filter_fields, "index_table" %>
|
||||
<span id="index_table">
|
||||
<%= render 'index'%>
|
||||
</span>
|
||||
<%=
|
||||
content_tag :div, class: "bottomnav clearfix" do
|
||||
content_tag :div, paginate(@registeredsites), class: "pagination pagination-centered"
|
||||
end
|
||||
%>
|
||||
</span>
|
Loading…
Reference in New Issue