From 8dfd618042363a6420a94ae5fb3e4da6698d2c82 Mon Sep 17 00:00:00 2001 From: Ricsi Date: Thu, 19 Jan 2017 23:40:58 +0100 Subject: [PATCH] autofocus on user search sandwich icon fixed user search starts at the beginning of the string --- _ajax/get_user_list.php | 2 +- index.php | 4 ++++ template/templates/nav.tpl | 3 +-- template/templates/user_list.tpl | 6 ++++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/_ajax/get_user_list.php b/_ajax/get_user_list.php index d96f821..56a2bec 100644 --- a/_ajax/get_user_list.php +++ b/_ajax/get_user_list.php @@ -7,7 +7,7 @@ else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos'); $filter1 = ""; if (!empty($_POST['uk_filter_name'])) { - $filter1 = "AND uk_name LIKE '%".$_POST['uk_filter_name']."%'"; + $filter1 = "AND uk_name LIKE '".$_POST['uk_filter_name']."%'"; } $filter2 = ""; diff --git a/index.php b/index.php index 975813a..d5c43e9 100644 --- a/index.php +++ b/index.php @@ -73,6 +73,10 @@ setlocale(LC_ALL, 'hu_HU'); onReady(function () { show('main_content', true); show('loading', false); + //user list autofocus Firefox fix + if ($("#uk_filter_name").length) { + $("#uk_filter_name").focus(); + } }); diff --git a/template/templates/nav.tpl b/template/templates/nav.tpl index 14c1b95..73c62ec 100755 --- a/template/templates/nav.tpl +++ b/template/templates/nav.tpl @@ -2,8 +2,7 @@ {if $can_logout}
  • - Menü - ☰ + Menü ≡ {if $page == 'admin'} diff --git a/template/templates/user_list.tpl b/template/templates/user_list.tpl index 8483fca..5da5069 100755 --- a/template/templates/user_list.tpl +++ b/template/templates/user_list.tpl @@ -10,7 +10,7 @@
    - +