Side navigation
Ticket #1659: patch.patch
File patch.patch, 0.6 KB (added by Q-Zma, September 18, 2007 02:42PM UTC)
Patch which fixes that strange IE behavior
Index: jquery.autocomplete.js
===================================================================
--- jquery.autocomplete.js (revision 3386)
+++ jquery.autocomplete.js (working copy)
@@ -739,7 +739,15 @@
}).show();
},
selected: function() {
- return data && data[ listItems.filter("." + CLASSES.ACTIVE)[0].index ];
+ var filteredItems = listItems.filter("." + CLASSES.ACTIVE);
+ if(filteredItems.length > 0)
+ {
+ return data && data[ filteredItems[0].index ];
+ }
+ else
+ {
+ return false;
+ }
}
};
};
Download in other formats:
Original Format
File patch.patch, 0.6 KB (added by Q-Zma, September 18, 2007 02:42PM UTC)
Patch which fixes that strange IE behavior
Index: jquery.autocomplete.js
===================================================================
--- jquery.autocomplete.js (revision 3386)
+++ jquery.autocomplete.js (working copy)
@@ -739,7 +739,15 @@
}).show();
},
selected: function() {
- return data && data[ listItems.filter("." + CLASSES.ACTIVE)[0].index ];
+ var filteredItems = listItems.filter("." + CLASSES.ACTIVE);
+ if(filteredItems.length > 0)
+ {
+ return data && data[ filteredItems[0].index ];
+ }
+ else
+ {
+ return false;
+ }
}
};
};