Add album_name variable.

This commit is contained in:
邱博亞 2024-08-04 03:00:35 +08:00
parent c577ccfe3b
commit 7127cd2fcb
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<li class="rgalbum" data-image-id="<%= album.id %>">
<div class="check">
<input type="checkbox" class="checkbox" name='album_id' value='<%= album.id %>'>
<input type="checkbox" class="checkbox" name='<%= album_name %>' value='<%= album.id %>'>
</div>
<a href="<%= admin_gallery_path(album.id) %>">
<% if album.cover == "default" %>

View File

@ -1,4 +1,4 @@
<%= render :partial => "album", :collection => @albums %>
<%= render :partial => "album", :collection => @albums, locals: {album_name: 'album_id'} %>
<script type="text/javascript">
$(document).ready(function(){
if( params()['keywords']){