reduced latency, sticky note in therapy view
[confetti] / templates / clients.html.sh
index db8a4de..aef2c96 100755 (executable)
@@ -25,7 +25,7 @@ check_order(){
 edit="${_GET[edit]}"
 [ \! -f "vcard/$edit" -a \! -f "temp/$edit" ] && edit=''
 [ -z "${_GET[filtertype]}" ] && _GET[filtertype]="any"
-[ -z "${_GET[order]}" ] && _GET[order]="firstname"
+[ -z "${_GET[order]}" ] && _GET[order]="lastname"
 
 cat <<EOF
 <form class="filter" action="?action=filter_card" method="POST">
@@ -57,11 +57,11 @@ cat <<EOF
 </form>
 
 ${edit:+$(edit_card "$edit")}
+EOF
 
-$(
-  listcards |grep ${edit:+-v} "$edit" \
-  | while read card; do
-    cat <<-ENDCARD
+listcards |grep ${edit:+-v} "$edit" \
+| while read card; do
+  cat <<-ENDCARD
        <div id="${card}" class="card">
          $(view_card "$card")<!--
          --><div class="control">
@@ -71,8 +71,6 @@ $(
          </div>
        </div>
        ENDCARD
-  done
-)
-EOF
+done
 
 # vi:set filetype=html: