Delegate tr mouseover events.

This commit is contained in:
Tom Ashworth 2013-01-16 10:09:07 +00:00
parent 5651efb4d0
commit 005f7bb25b

View File

@ -63,11 +63,11 @@
});
// Delay a preview load after tr mouseover
$trs.mouseover(function (event) {
$bins.delegate('tr', 'mouseover', function (event) {
var $this = $(this),
url = $this.attr('data-url');
clearTimeout(hoverTimer);
if ($this.attr('data-type') !== 'spacer' && current !== url) {
if (current !== url) {
hoverTimer = setTimeout(function () {
$trs.removeClass('selected');
$this.addClass('selected');