Fixed global search field, will search when a dropdown item is clicked
This commit is contained in:
parent
cbfcea7198
commit
cc71ce4a2c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue