mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 09:14:48 +09:00
Fix max_input_vars error when there are too many levels
- max_input_vars 설정과 무관하게 레벨 수를 늘릴 수 있도록 조정 (레벨 관련 POST 변수들을 하나로 합쳐서 전송) - 허용되는 최대 레벨 수를 1000에서 10000으로 늘림 (단, 권장하는 최대 수는 여전히 1000임)
This commit is contained in:
parent
c34a9a9005
commit
125dea44b6
5 changed files with 26 additions and 15 deletions
|
|
@ -15,13 +15,6 @@
|
|||
<span class="x_help-inline">{$lang->about_point_io}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="max_level" class="x_control-label">{$lang->max_level}</label>
|
||||
<div class="x_controls">
|
||||
<input type="number" min="0" max="{$system_max_level}" value="{$config->max_level}" name="max_level" id="max_level" />
|
||||
<p class="x_help-block">{sprintf($lang->about_max_level, $system_max_level)}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="point_name" class="x_control-label">{$lang->point_name}</label>
|
||||
<div class="x_controls">
|
||||
|
|
@ -29,6 +22,13 @@
|
|||
<p class="x_help-block">{$lang->about_point_name}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="max_level" class="x_control-label">{$lang->max_level}</label>
|
||||
<div class="x_controls">
|
||||
<input type="number" min="0" value="{$config->max_level}" name="max_level" id="max_level" />
|
||||
<p class="x_help-block">{$lang->about_max_level}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="level_icon" class="x_control-label">{$lang->level_icon}</label>
|
||||
<div class="x_controls">
|
||||
|
|
@ -196,7 +196,7 @@
|
|||
<tr>
|
||||
<td>1</td>
|
||||
<td><img src="{getUrl()}modules/point/icons/{$config->level_icon}/1.gif" alt="1" /></td>
|
||||
<td><label for="level_step_1" style="margin:0"><input type="number" id="level_step_1" name="level_step_1" value="{$config->level_step[1]}" style="width:120px;text-align:right" /> {$config->point_name}</label></td>
|
||||
<td><label for="level_step_1" style="margin:0"><input type="number" id="level_step_1" class="level_step" value="{$config->level_step[1]}" style="width:120px;text-align:right" /> {$config->point_name}</label></td>
|
||||
{@$point_group_item = $point_group[1]}
|
||||
{@$title=array()}
|
||||
<!--@if($point_group_item)-->
|
||||
|
|
@ -220,12 +220,13 @@
|
|||
<tr class="row{(($i-1)%2+1)}">
|
||||
<td>{$i}</td>
|
||||
<td><img src="{getUrl()}modules/point/icons/{$config->level_icon}/{$i}.gif" alt="{$i}" /></td>
|
||||
<td><label for="level_step_{$i}" style="margin:0"><input type="number" id="level_step_{$i}" name="level_step_{$i}" value="{$config->level_step[$i]}" style="width:120px;text-align:right" /> {$config->point_name}</label></td>
|
||||
<td><label for="level_step_{$i}" style="margin:0"><input type="number" id="level_step_{$i}" class="level_step" value="{$config->level_step[$i]}" style="width:120px;text-align:right" /> {$config->point_name}</label></td>
|
||||
<td>{implode(', ', $title)}</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
<div class="x_clearfix">
|
||||
<input id="level_step" name="level_step" type="hidden" value="{implode(',', $config->level_step)}" />
|
||||
<span class="x_pull-right"><input class="x_btn x_btn-primary" type="submit" value="{$lang->cmd_save}" /></span>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,14 @@
|
|||
|
||||
jQuery(function($){
|
||||
|
||||
$('#point_module_config_form').on('submit', function() {
|
||||
var level_step = [];
|
||||
$(this).find('.level_step').each(function() {
|
||||
level_step.push(parseInt($(this).val(), 10));
|
||||
});
|
||||
$('#level_step').val(level_step.join(','));
|
||||
});
|
||||
|
||||
$('button.calc_point').click(function(){
|
||||
var $this, form, elems, reset, el, fn, i=0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue