Search field for tasks

Fixes #2103
This commit is contained in:
Francis Lachapelle
2012-12-05 14:47:28 -05:00
parent 3606601c39
commit 8ca79d9a17
13 changed files with 145 additions and 116 deletions
+3 -3
View File
@@ -18,9 +18,9 @@ function openContactsFolder(contactsFolder, reload, idx) {
var url = URLForFolderID(Contact.currentAddressBook, "Contacts") +
"/view?noframe=1";
var searchValue = search["value"];
var searchValue = search["contacts"]["value"];
if (searchValue && searchValue.length > 0)
url += ("&search=" + search["criteria"]
url += ("&search=" + search["contacts"]["criteria"]
+ "&value=" + escape(searchValue.utf8encode()));
var sortAttribute = sorting["attribute"];
if (sortAttribute && sortAttribute.length > 0)
@@ -613,7 +613,7 @@ function onFolderSelectionChange(event) {
}
else {
search = {};
$("searchValue").value = "";
$$('[name="search"]').each(function(input) { input.value = "" });
initCriteria();
openContactsFolder(nodes[0].getAttribute("id"));
}