From: Richard D. Worth Date: Wed, 16 Nov 2011 15:52:12 +0000 (-0500) Subject: Selectable: add ui-selectee class to elements matching filter on refresh. Fixes ... X-Git-Tag: 1.8.17~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e9002c4c8f04266497926419034ea44f62725bcf;p=jquery-ui.git Selectable: add ui-selectee class to elements matching filter on refresh. Fixes #7716 - Selectable: new elements added programatically don't have class ui-selectee (cherry picked from commit 97bc2d9de9875e222254cfa1cd3fa3bde605c2ed) --- diff --git a/ui/jquery.ui.selectable.js b/ui/jquery.ui.selectable.js index fa7d01122..19ed1fbd7 100644 --- a/ui/jquery.ui.selectable.js +++ b/ui/jquery.ui.selectable.js @@ -33,6 +33,7 @@ $.widget("ui.selectable", $.ui.mouse, { var selectees; this.refresh = function() { selectees = $(self.options.filter, self.element[0]); + selectees.addClass("ui-selectee"); selectees.each(function() { var $this = $(this); var pos = $this.offset();