From 65d62517443b67fc4a180c43b50fe62f11b9e3b6 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 9 Jun 2015 14:23:28 +0200 Subject: [PATCH] Add awesomplete to tag search shaarli/Shaarli#49 --- inc/shaarli.css | 11 ++++++++++- index.php | 1 + tpl/linklist.html | 14 ++++++++++++-- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/inc/shaarli.css b/inc/shaarli.css index c4348c7..f541352 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -221,8 +221,17 @@ h1 { margin-left:24px; } +.tagfilter div.awesomplete { + width: inherit; +} + .tagfilter #tagfilter_value { - width: 10%; + width: 100%; + display: inline; +} + +.tagfilter li { + color: black; } .tagfilter input.bigbutton, .searchform input.bigbutton, .addform input.bigbutton { diff --git a/index.php b/index.php index 9561f63..021d93f 100644 --- a/index.php +++ b/index.php @@ -2018,6 +2018,7 @@ function buildLinkList($PAGE,$LINKSDB) $PAGE->assign('redirector',empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector']); // Optional redirector URL. $PAGE->assign('token',$token); $PAGE->assign('links',$linkDisp); + $PAGE->assign('tags', $LINKSDB->allTags()); return; } diff --git a/tpl/linklist.html b/tpl/linklist.html index 766a80c..47e67e7 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -1,12 +1,21 @@ -{include="includes"} + + + {include="includes"} + @@ -129,5 +138,6 @@ function showQrCode(caller,loading) return false; } +