Update categories_order.html.erb

This commit is contained in:
chiu 2019-09-18 22:26:39 +08:00
parent 69444380a8
commit 7f679e03dc
1 changed files with 3 additions and 3 deletions

View File

@ -4,11 +4,11 @@
$('form[name="category_sort_number_form"]').submit(function(){ $('form[name="category_sort_number_form"]').submit(function(){
var eles = $('form[name="category_sort_number_form"]').serialize().split('&') var eles = $('form[name="category_sort_number_form"]').serialize().split('&')
var keys=[],values=[] var keys=[],values=[]
eles.each(function(){ for (var ele in eles){
var temp = this.split('=') var temp = ele.split('=')
keys.push(temp[0]) keys.push(temp[0])
values.push(temp[1]) values.push(temp[1])
}) }
if (navigator.onLine) { if (navigator.onLine) {
$.ajax({ $.ajax({
url : "/admin/archive_files/categories_order", url : "/admin/archive_files/categories_order",