Author: sevein
Date: Tue Jun 28 11:29:56 2011
New Revision: 9208
Log:
jQuery filter worked instead of :has selector, fixes issue 2004
Modified:
trunk/js/autocomplete.js
Modified: trunk/js/autocomplete.js
==============================================================================
--- trunk/js/autocomplete.js Mon Jun 27 22:37:37 2011 (r9207)
+++ trunk/js/autocomplete.js Tue Jun 28 11:29:56 2011 (r9208)
@@ -216,7 +216,14 @@
// If this item is already selected, highlight it,
// otherwise add it to list of selected items
- if (!$('li:has(input[value=' + args[2][1] + '])', $ul)
+ if (!
+ // For unknown reasons, this selector isn't
working, see issue 2004
+ // $('li:has(input[value=' + args[2][1] + '])',
$ul)
+ $('li', $ul)
+ .filter(function()
+ {
+ return args[2][1] ==
$(this).find('input').val();
+ })
.each(function ()
{
// Make background yellow for one second
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.