修正获取radio值的js

This commit is contained in:
wlx 2015-09-17 16:48:49 +08:00
parent 449453c28f
commit 4856f767bd
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ function updateDataSet(){
$.ajax({
'type':"POST",
'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){
if (typeof(data)=='object')
{
@ -72,7 +72,7 @@ function addDataSet(){
$.ajax({
'type':"POST",
'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){
if (typeof(data)=='object')
{