mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 20:07:52 -05:00
4a5a2d869e
FIX: more search results work if you open in new tab FIX: carry context to full page search
12 lines
329 B
JavaScript
12 lines
329 B
JavaScript
export default Discourse.View.extend({
|
|
tagName: 'div',
|
|
classNames: ['d-dropdown'],
|
|
elementId: 'search-dropdown',
|
|
templateName: 'search',
|
|
keyDown: function(e){
|
|
var term = this.get('controller.term');
|
|
if (e.which === 13 && term && term.length > 2) {
|
|
this.get('controller').send('fullSearch');
|
|
}
|
|
}
|
|
});
|