Blacklist /common/document in Suggest - fixes #632

This commit is contained in:
Tom Morris 2012-11-20 15:15:52 -05:00
parent 6315036c82
commit 04668eb720

View File

@ -376,7 +376,9 @@ DataTableCellUI.prototype._searchForMatch = function(suggestOptions) {
elmts.clearButton.click(commitClear);
elmts.cancelButton.click(dismiss);
var suggestOptions2 = $.extend({ align: "left" }, suggestOptions || { all_types: true });
var suggestOptions2 = $.extend({ align: "left" }, suggestOptions
|| { all_types: true, // FIXME: all_types isn't documented for Suggest. Is it still implemented?
filter: "(not type:/common/document)" }); // blacklist documents
if (suggestOptions2.service_url) {
// Old style suggest API
suggestOptions2.key = null;