修正获取radio值的js
This commit is contained in:
parent
449453c28f
commit
4856f767bd
|
@ -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')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue