From dd4cf9d75f5fe88ee81b8584628cb6dd8ab3cd5c Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Thu, 26 Mar 2015 14:46:43 +0100 Subject: [PATCH] Added AutoFocus Code into DBMapping and Views Admin --- src/admin/dbmappings.php | 6 ++++++ src/admin/views.php | 6 ++++++ src/templates/admin/admin_dbmappings.html | 8 ++++---- src/templates/admin/admin_views.html | 10 ++++------ 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/admin/dbmappings.php b/src/admin/dbmappings.php index b3c1e11..43ee812 100644 --- a/src/admin/dbmappings.php +++ b/src/admin/dbmappings.php @@ -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! { diff --git a/src/admin/views.php b/src/admin/views.php index 0a50e50..c8b9b3c 100644 --- a/src/admin/views.php +++ b/src/admin/views.php @@ -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! { diff --git a/src/templates/admin/admin_dbmappings.html b/src/templates/admin/admin_dbmappings.html index f7c6e71..56414f4 100644 --- a/src/templates/admin/admin_dbmappings.html +++ b/src/templates/admin/admin_dbmappings.html @@ -90,10 +90,10 @@ - - - - + + + + diff --git a/src/templates/admin/admin_views.html b/src/templates/admin/admin_views.html index 8817416..039e1dd 100644 --- a/src/templates/admin/admin_views.html +++ b/src/templates/admin/admin_views.html @@ -108,13 +108,11 @@ - - - - + + + +  -->