projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5b72984
)
fix vcard sorting and tabs
author
Wilfried Goesgens
<willi@arangodb.com>
Thu, 19 Nov 2015 21:44:44 +0000
(22:44 +0100)
committer
Wilfried Goesgens
<willi@arangodb.com>
Thu, 19 Nov 2015 21:44:44 +0000
(22:44 +0100)
webcit/vcard_edit.c
patch
|
blob
|
history
diff --git
a/webcit/vcard_edit.c
b/webcit/vcard_edit.c
index 636992f22500d1a7a9810cb8efe582388f90baca..f94841f9ac7caf062ec408cf5d4f93f50a9101d9 100644
(file)
--- a/
webcit/vcard_edit.c
+++ b/
webcit/vcard_edit.c
@@
-985,7
+985,7
@@
void do_addrbook_view(vcardview_struct* VS) {
}
if (num_ab > 1) {
}
if (num_ab > 1) {
-
///SortByHashKey(VS->addrbook, 0
);
+
SortByHashKey(VS->addrbook, 1
);
}
num_pages = (GetCount(VS->addrbook) / NAMESPERPAGE) + 1;
}
num_pages = (GetCount(VS->addrbook) / NAMESPERPAGE) + 1;
@@
-1012,12
+1012,13
@@
void do_addrbook_view(vcardview_struct* VS) {
if (GetHashAt(VS->addrbook, tabfirst, &hklen1, &c1, &v1)) {
a1 = (addrbookent*) v1;
StrBufAppendBuf(headline, a1->name, 0);
if (GetHashAt(VS->addrbook, tabfirst, &hklen1, &c1, &v1)) {
a1 = (addrbookent*) v1;
StrBufAppendBuf(headline, a1->name, 0);
-
+ StrBuf_Utf8StrCut(headline, 3);
if (GetHashAt(VS->addrbook, tablast, &hklen2, &c2, &v2)) {
a2 = (addrbookent*) v2;
StrBufAppendBufPlain(headline, HKEY(" - "), 0);
StrBufAppendBuf(headline, a2->name, 0);
if (GetHashAt(VS->addrbook, tablast, &hklen2, &c2, &v2)) {
a2 = (addrbookent*) v2;
StrBufAppendBufPlain(headline, HKEY(" - "), 0);
StrBufAppendBuf(headline, a2->name, 0);
+ StrBuf_Utf8StrCut(headline, 9);
}
}
tablabels[i] = headline;
}
}
tablabels[i] = headline;
@@
-1031,7
+1032,6
@@
void do_addrbook_view(vcardview_struct* VS) {
DeleteHash(&headlines);
free(tablabels);
StrBufAppendBufPlain(WCC->WBuf, HKEY("</div>"), 0);/* closes: id=global */
DeleteHash(&headlines);
free(tablabels);
StrBufAppendBufPlain(WCC->WBuf, HKEY("</div>"), 0);/* closes: id=global */
- wDumpContent(1);
}
}