Fixed global search field, will search when a dropdown item is clicked

This commit is contained in:
Faldrian 2013-08-10 19:59:05 +02:00
parent cbfcea7198
commit cc71ce4a2c

View file

@ -66,7 +66,7 @@
window.location = self.searchFormAction + '?' + self.searchInputName + '=' + data['name']; window.location = self.searchFormAction + '?' + self.searchInputName + '=' + data['name'];
} else { // The actual result } else { // The actual result
self.options.element.val(formatted); self.options.element.val(formatted);
window.location = data['url'] ? data['url'] : "/tags/" + searchForm.attr('name'); window.location = data['url'] ? data['url'] : "/tags/" + data['name'].substring(1); // we don't want the #-character
} }
}; };
}; };