Update categories_order.html.erb

fix error
This commit is contained in:
chiu 2019-09-19 18:49:06 +08:00
parent ff7fb11073
commit 7eb52b7059
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<% all_locales = I18n.available_locales %>
<% count = all_locales.length %>
<script type='text/javascript'>
$('form[name="category_sort_number_form"]').on('load',function(){
$('.category_sort_number_form"]').ready(function(){
$('form[name="category_sort_number_form"]').submit(function(){
var eles = $('form[name="category_sort_number_form"]').serialize().split('&')
var keys=[],values=[]
@ -30,6 +30,7 @@ $('form[name="category_sort_number_form"]').on('load',function(){
})
})
</script>
<div class='category_sort_number_form'>
<form method="post" action="/admin/archive_files/categories_order?" name="category_sort_number_form" >
<table>
<thead style='line-height: 3;'>
@ -56,3 +57,4 @@ $('form[name="category_sort_number_form"]').on('load',function(){
</table>
<input type="submit" value="<%= t('archive.save') %>">
</form>
</div>