parent
5f2382583b
commit
0fd6c634bf
|
@ -1,11 +1,12 @@
|
||||||
<% all_locales = I18n.available_locales %>
|
<% all_locales = I18n.available_locales %>
|
||||||
<% count = all_locales.length %>
|
<% count = all_locales.length %>
|
||||||
<script>
|
<script>
|
||||||
$('form[name="category_sort_number_form"]').submit(function(){
|
$('form[name="category_sort_number_form"]').on('load',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=[]
|
||||||
for (var ele in eles){
|
for (var i=0;i<eles.length;i++){
|
||||||
var temp = ele.split('=')
|
var temp = eles[i].split('=')
|
||||||
keys.push(temp[0])
|
keys.push(temp[0])
|
||||||
values.push(temp[1])
|
values.push(temp[1])
|
||||||
}
|
}
|
||||||
|
@ -26,6 +27,7 @@ $('form[name="category_sort_number_form"]').submit(function(){
|
||||||
alert('Please connect the network and try again later!')
|
alert('Please connect the network and try again later!')
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
})
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<form method="post" action="/admin/archive_files/categories_order" name="category_sort_number_form" >
|
<form method="post" action="/admin/archive_files/categories_order" name="category_sort_number_form" >
|
||||||
|
|
Loading…
Reference in New Issue