Added AutoFocus Code into DBMapping and Views Admin

This commit is contained in:
Andre Lorbach 2015-03-26 14:46:43 +01:00
parent fd3fccf008
commit dd4cf9d75f
4 changed files with 20 additions and 10 deletions

View File

@ -351,6 +351,9 @@ if ( isset($_POST['op']) )
array_splice($content['SUBMAPPINGS'], $iArrayNum-1, 0, $EntryTwoMove);
}
// ---
// Add Focus to MoveUp Button again
AddWindowLoadFocus("subop_moveup_" . $szColId);
}
else if ( isset($_POST['subop_movedown']) )
{
@ -381,6 +384,9 @@ if ( isset($_POST['op']) )
array_splice($content['SUBMAPPINGS'], $iArrayNum+1, 0, $EntryTwoMove);
}
// ---
// Add Focus to MoveDown Button again
AddWindowLoadFocus("subop_movedown_" . $szColId);
}
else // Now SUBOP means normal processing!
{

View File

@ -446,6 +446,9 @@ if ( isset($_POST['op']) )
array_splice($content['SUBCOLUMNS'], $iArrayNum-1, 0, $EntryTwoMove);
}
// ---
// Add Focus to MoveUp Button again
AddWindowLoadFocus("subop_moveup_" . $szColId);
}
else if ( isset($_POST['subop_movedown']) )
{
@ -476,6 +479,9 @@ if ( isset($_POST['op']) )
array_splice($content['SUBCOLUMNS'], $iArrayNum+1, 0, $EntryTwoMove);
}
// ---
// Add Focus to MoveDown Button again
AddWindowLoadFocus("subop_movedown_" . $szColId);
}
else // Now SUBOP means normal processing!
{

View File

@ -90,10 +90,10 @@
</td>
<td align="center" class="{colcssclass}" width="20%">
<button name="subop_edit" type="submit" value="{MappingFieldID}" class="borderlessbuttons" title="{LN_DBMP_MAPPING_EDIT}"><img src="{MENU_EDIT}" width="16" alt="{LN_DBMP_MAPPING_EDIT}"></button>
<button name="subop_moveup" type="submit" value="{MappingFieldID}" class="borderlessbuttons" title="{LN_DBMP_MAPPING_MOVEUP}"><img src="{MENU_MOVE_UP}" width="16" alt="{LN_DBMP_MAPPING_REMOVE}"></button>
<button name="subop_movedown" type="submit" value="{MappingFieldID}" class="borderlessbuttons" title="{LN_DBMP_MAPPING_MOVEDOWN}"><img src="{MENU_MOVE_DOWN}" width="16" alt="{LN_DBMP_MAPPING_REMOVE}"></button>
<button name="subop_delete" type="submit" value="{MappingFieldID}" class="borderlessbuttons" title="{LN_DBMP_MAPPING_REMOVE}"><img src="{MENU_DELETE}" width="16" alt="{LN_DBMP_MAPPING_REMOVE}"></button>
<button name="subop_edit" id="subop_edit_{MappingFieldID}" type="submit" value="{MappingFieldID}" class="borderlessbuttons" title="{LN_DBMP_MAPPING_EDIT}"><img src="{MENU_EDIT}" width="16" alt="{LN_DBMP_MAPPING_EDIT}"></button>
<button name="subop_moveup" id="subop_moveup_{MappingFieldID}" type="submit" value="{MappingFieldID}" class="borderlessbuttons" title="{LN_DBMP_MAPPING_MOVEUP}"><img src="{MENU_MOVE_UP}" width="16" alt="{LN_DBMP_MAPPING_REMOVE}"></button>
<button name="subop_movedown" id="subop_movedown_{MappingFieldID}" type="submit" value="{MappingFieldID}" class="borderlessbuttons" title="{LN_DBMP_MAPPING_MOVEDOWN}"><img src="{MENU_MOVE_DOWN}" width="16" alt="{LN_DBMP_MAPPING_REMOVE}"></button>
<button name="subop_delete" id="subop_delete_{MappingFieldID}" type="submit" value="{MappingFieldID}" class="borderlessbuttons" title="{LN_DBMP_MAPPING_REMOVE}"><img src="{MENU_DELETE}" width="16" alt="{LN_DBMP_MAPPING_REMOVE}"></button>
</td>
</tr>
<!-- END SUBMAPPINGS -->

View File

@ -108,13 +108,11 @@
</td>
<td align="center" class="{colcssclass}" width="20%">
<button name="subop_moveup" type="submit" value="{ColFieldID}" class="borderlessbuttons" title="{LN_VIEWS_COLUMN_REMOVE}"><img src="{MENU_MOVE_UP}" width="16" alt="{LN_VIEWS_COLUMN_REMOVE}"></button>
<button name="subop_movedown" type="submit" value="{ColFieldID}" class="borderlessbuttons" title="{LN_VIEWS_COLUMN_REMOVE}"><img src="{MENU_MOVE_DOWN}" width="16" alt="{LN_VIEWS_COLUMN_REMOVE}"></button>
<button name="subop_delete" type="submit" value="{ColFieldID}" class="borderlessbuttons" title="{LN_VIEWS_COLUMN_REMOVE}"><img src="{MENU_DELETE}" width="16" alt="{LN_VIEWS_COLUMN_REMOVE}"></button>
<button name="subop_moveup" id="subop_moveup_{ColFieldID}" type="submit" value="{ColFieldID}" class="borderlessbuttons" title="{LN_VIEWS_COLUMN_REMOVE}"><img src="{MENU_MOVE_UP}" width="16" alt="{LN_VIEWS_COLUMN_REMOVE}"></button>
<button name="subop_movedown" id="subop_movedown_{ColFieldID}" type="submit" value="{ColFieldID}" class="borderlessbuttons" title="{LN_VIEWS_COLUMN_REMOVE}"><img src="{MENU_MOVE_DOWN}" width="16" alt="{LN_VIEWS_COLUMN_REMOVE}"></button>
<button name="subop_delete" id="subop_delete_{ColFieldID}" type="submit" value="{ColFieldID}" class="borderlessbuttons" title="{LN_VIEWS_COLUMN_REMOVE}"><img src="{MENU_DELETE}" width="16" alt="{LN_VIEWS_COLUMN_REMOVE}"></button>
<!-- &nbsp;<input type="submit" style="background-image:url({MENU_DELETE}); background-repeat:no-repeat; background-position:center;" class="borderless" name="subop_delete" value="{ColFieldID}">
&nbsp;<input type="image" src="{MENU_DELETE}" alt="{LN_VIEWS_COLUMN_REMOVE}" class="borderless" width="16" name="subop_delete_{ColFieldID}">
-->
&nbsp;<input type="image" src="{MENU_DELETE}" alt="{LN_VIEWS_COLUMN_REMOVE}" class="borderless" width="16" name="subop_delete_{ColFieldID}">-->
</td>
</tr>
<!-- END SUBCOLUMNS -->