mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 23:01:41 +09:00
issue 332, fixed a bug related extra variable ordering
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9492 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e3c8b1e81c
commit
f0a9bfa02f
2 changed files with 10 additions and 3 deletions
|
|
@ -453,6 +453,14 @@
|
|||
if($type == 'up') $new_idx = $var_idx-1;
|
||||
else $new_idx = $var_idx+1;
|
||||
if($new_idx<1) return new Object(-1,'msg_invalid_request');
|
||||
|
||||
$args->module_srl = $module_srl;
|
||||
$args->var_idx = $new_idx;
|
||||
$output = executeQuery('document.getDocumentExtraKeys', $args);
|
||||
if (!$output->toBool()) return $output;
|
||||
if (!$output->data) return new Object(-1, 'msg_invalid_request');
|
||||
unset($args);
|
||||
|
||||
// update immediately if there is no idx to change
|
||||
if(!$extra_keys[$new_idx]) {
|
||||
$args->module_srl = $module_srl;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
<load target="js/document_admin.js" usecdn="true" />
|
||||
<!--%import("filter/insert_extra_var.xml")-->
|
||||
<!--%import("filter/delete_extra_var.xml")-->
|
||||
<load target="js/module_admin.js" usecdn="true" />
|
||||
|
||||
<!--@if($selected_var_idx && $extra_keys[$selected_var_idx])-->
|
||||
{@ $selected_var = $extra_keys[$selected_var_idx] }
|
||||
|
|
@ -97,8 +96,8 @@
|
|||
<td rowspan="3"><!--@if($val->is_required=='Y')--><b>{$lang->is_required}</b><!--@else-->N<!--@end--></td>
|
||||
<td rowspan="3"><!--@if($val->search=='Y')--><b>{$lang->search_target}</b><!--@else-->N<!--@end--></td>
|
||||
<td rowspan="3">
|
||||
<!--@if($val->idx>1)--><a href="#" onclick="moveVar('up','{$module_srl}','{$val->idx}'); return false;" class="buttonSet buttonUp"><span>{$lang->cmd_modify}</span></a><!--@end-->
|
||||
<a href="#" onclick="moveVar('down','{$module_srl}','{$val->idx}');return false;" class="buttonSet buttonDown">{$lang->cmd_modify}</a>
|
||||
<!--@if($val->idx>1)--><a href="#" onclick="moveVar('up','{$module_srl}','{$val->idx}'); return false;" class="buttonSet buttonUp"><span>{$lang->cmd_move_up}</span></a><!--@end-->
|
||||
<a cond="count($extra_keys) > $val->idx" href="#" onclick="moveVar('down','{$module_srl}','{$val->idx}');return false;" class="buttonSet buttonDown">{$lang->cmd_move_down}</a>
|
||||
<a href="{getUrl('selected_var_idx',$val->idx)}" class="buttonSet buttonSetting"><span>{$lang->cmd_modify}</span></a>
|
||||
<a href="#" onclick="return doDeleteExtraKey('{$module_srl}','{$val->idx}');" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue