mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 15:13:42 +08:00
23 lines
510 B
JavaScript
23 lines
510 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.View.extend({
|
|
|
|
classNames: ['search-nav'],
|
|
templateName: 'discussions-nav',
|
|
|
|
type: 'discussions',
|
|
|
|
mouseEnter: function() {
|
|
clearTimeout(this.get('controller.paneTimeout'));
|
|
this.set('controller.paneShowing', true);
|
|
},
|
|
|
|
mouseLeave: function() {
|
|
var view = this;
|
|
this.set('controller.paneTimeout', setTimeout(function() {
|
|
view.set('controller.paneShowing', false);
|
|
}, 500));
|
|
}
|
|
|
|
});
|