Update categories_order.html.erb
This commit is contained in:
parent
69444380a8
commit
7f679e03dc
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue