修正获取radio值的js

This commit is contained in:
wlx 2015-09-17 16:48:49 +08:00
parent abc95dd01c
commit 224050096e
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ function updateDataSet(){
$.ajax({ $.ajax({
'type':"POST", 'type':"POST",
'url':'/admin/data/dataset', 'url':'/admin/data/dataset',
'data':'ac=update&uuid=<?= $this->uuid ?>&host='+$('#host').val()+'&path='+$('#path').val(), 'data':'ac=update&uuid=<?= $this->uuid ?>&host='+$('#host').val()+'&path='+$('#path').val()+'&lang='+$("input[type='radio'][name='lang']:checked").val(),
'success':function(data){ 'success':function(data){
if (typeof(data)=='object') if (typeof(data)=='object')
{ {
@ -72,7 +72,7 @@ function addDataSet(){
$.ajax({ $.ajax({
'type':"POST", 'type':"POST",
'url':'/admin/data/dataset', 'url':'/admin/data/dataset',
'data':'ac=add&uuid=<?= $this->uuid ?>&host='+$('#host').val()+'&path='+$('#path').val(), 'data':'ac=add&uuid=<?= $this->uuid ?>&host='+$('#host').val()+'&path='+$('#path').val()+'&lang='+$("input[type='radio'][name='lang']:checked").val(),
'success':function(data){ 'success':function(data){
if (typeof(data)=='object') if (typeof(data)=='object')
{ {