gallery/app/views/admin/galleries/_albums.html.erb

14 lines
446 B
Plaintext
Raw Normal View History

2020-10-16 06:44:08 +00:00
<%= render :partial => "album", :collection => @albums %>
<script type="text/javascript">
$(document).ready(function(){
if( params()['keywords']){
$('#edit-order-btn').css("display",'none');
}else{
$('#edit-order-btn').css("display",'');
}
max_page = <%= (@fiter_albums.length/@limit_count).ceil rescue 1 %>
if( max_page > 1 && max_page >= page_no){
$("#edit-order-btn").hide();
}
})
</script>