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(){
var eles = $('form[name="category_sort_number_form"]').serialize().split('&')
var keys=[],values=[]
eles.each(function(){
var temp = this.split('=')
for (var ele in eles){
var temp = ele.split('=')
keys.push(temp[0])
values.push(temp[1])
})
}
if (navigator.onLine) {
$.ajax({
url : "/admin/archive_files/categories_order",