Array type arg js 처리

This commit is contained in:
2020-03-25 02:56:45 +09:00
parent 35eadad96b
commit 9fa2225283
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -81,7 +81,10 @@ window.submitAction = function(){
availableArgumentList[typeName].forEach(function(argName){
var $obj = $('#'+argName);
if($obj.length == 0){
return;
$obj = $('.'+argName);
if($obj.length == 0){
return;
}
}
argument[argName] = handlerList[typeName]($obj);
+2 -2
View File
@@ -254,12 +254,12 @@ class che_원조 extends Command\NationCommand{
>【<?=$nation['name']?> 】</option>
<?php endforeach; ?>
</select>
국고 <select class='formInput' name="goldAmount" id="goldAmount" size='1' style='color:white;background-color:black;'>
국고 <select class='formInput' name="amountList[]" class="amountList" size='1' style='color:white;background-color:black;'>
<?php foreach(range(0, $currentNationLevel) as $nationLevel): ?>
<option value='<?=$nationLevel*GameConst::$coefAidAmount?>'><?=$nationLevel*GameConst::$coefAidAmount?></option>
<?php endforeach; ?>
</select>
병량 <select class='formInput' name="riceAmount" id="riceAmount" size='1' style='color:white;background-color:black;'>
병량 <select class='formInput' name="amountList[]" class="amountList" size='1' style='color:white;background-color:black;'>
<?php foreach(range(0, $currentNationLevel) as $nationLevel): ?>
<option value='<?=$nationLevel*GameConst::$coefAidAmount?>'><?=$nationLevel*GameConst::$coefAidAmount?></option>
<?php endforeach; ?>