diff options
author | Oliver Gillespie <oliver@polylytics.com> | 2014-08-13 14:50:54 +0100 |
---|---|---|
committer | Oliver Gillespie <oliver@polylytics.com> | 2014-08-13 14:50:54 +0100 |
commit | 2549080d3fc1f98c0d5090d0e6f5359f25a447bc (patch) | |
tree | 0f32679f0a5556dd051776c4893ca3ea6da9d2a7 | |
parent | b819277a29e35b3c83181759776c540895ba24e4 (diff) | |
download | multi-select-2549080d3fc1f98c0d5090d0e6f5359f25a447bc.zip multi-select-2549080d3fc1f98c0d5090d0e6f5359f25a447bc.tar.gz multi-select-2549080d3fc1f98c0d5090d0e6f5359f25a447bc.tar.bz2 |
remove item highlighting when mouse leaves list
-rw-r--r-- | js/jquery.multi-select.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index c99cc5a..697d15b 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -324,6 +324,10 @@ $(this).parents('.ms-container').find(that.elemsSelector).removeClass('ms-hover'); $(this).addClass('ms-hover'); }); + + $('body').on('mouseleave', that.elemsSelector, function () { + $(this).parents('.ms-container').find(that.elemsSelector).removeClass('ms-hover');; + }); }, 'refresh' : function() { |