Skip to content

Commit 3d2a7eb

Browse files
committed
Merge pull request #28 from sheeley/feature/select-on-hover
Set cursor on hover.
2 parents d60aed0 + 2d5d521 commit 3d2a7eb

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

dist/typeahead.bundle.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,6 +1835,9 @@
18351835
var that = this, onSelectableClick;
18361836
onSelectableClick = _.bind(this._onSelectableClick, this);
18371837
this.$node.on("click.tt", this.selectors.selectable, onSelectableClick);
1838+
this.$node.on("mouseover", this.selectors.selectable, function() {
1839+
that.setCursor($(this));
1840+
});
18381841
_.each(this.datasets, function(dataset) {
18391842
dataset.onSync("asyncRequested", that._propagate, that).onSync("asyncCanceled", that._propagate, that).onSync("asyncReceived", that._propagate, that).onSync("rendered", that._onRendered, that).onSync("cleared", that._onCleared, that);
18401843
});

dist/typeahead.bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typeahead.jquery.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,9 @@
912912
var that = this, onSelectableClick;
913913
onSelectableClick = _.bind(this._onSelectableClick, this);
914914
this.$node.on("click.tt", this.selectors.selectable, onSelectableClick);
915+
this.$node.on("mouseover", this.selectors.selectable, function() {
916+
that.setCursor($(this));
917+
});
915918
_.each(this.datasets, function(dataset) {
916919
dataset.onSync("asyncRequested", that._propagate, that).onSync("asyncCanceled", that._propagate, that).onSync("asyncReceived", that._propagate, that).onSync("rendered", that._onRendered, that).onSync("cleared", that._onCleared, that);
917920
});

dist/typeahead.jquery.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/typeahead/menu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ var Menu = (function() {
103103

104104
onSelectableClick = _.bind(this._onSelectableClick, this);
105105
this.$node.on('click.tt', this.selectors.selectable, onSelectableClick);
106+
this.$node.on('mouseover', this.selectors.selectable, function(){ that.setCursor($(this)) });
106107

107108
_.each(this.datasets, function(dataset) {
108109
dataset

0 commit comments

Comments
 (0)