X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=widgets.sh;h=4b36b3534e8629c992c46a9309814131c37b1843;hb=d596aba5c45a148ca789ccda79464b8f5d4478b4;hp=cd9dda30ca344037e5db60751e9c8a990eec9bfe;hpb=f8c309d40c54fd0c8ad9cb6d9629d778113cb32a;p=serve0 diff --git a/widgets.sh b/widgets.sh index cd9dda3..4b36b35 100644 --- a/widgets.sh +++ b/widgets.sh @@ -188,7 +188,7 @@ w_advsearch(){ $n "${t:+checked}" $n $n f="|${f#\~}|" - printf '*\n%s\n' "$w_tagcategories" \ + printf '*\n%s\n$\n' "$w_tagcategories" \ | while read -r category; do lbid="cat_${n}_${category}" @@ -217,6 +217,8 @@ w_advsearch(){ # printf '[option %s value="%s"\n%s]' "$t" "$tag" "$d" printf '[label [checkbox "tag_%s" "%s" %s] %s]' "$n" "$tag" "$t" "$d" done + d="${f##*\$:}" d="${d%%\|*}" + [ "$category" = \$ ] && printf '[input name="tag_%i" value="%s"]' "$n" "$(HTML "$d")" printf '\n]' done printf ']'