Download:
child 5:1c231df1a171
parent 3:cd531665699b
4:88f00d65652c
Anton Shestakov <engored@ya.ru>, Fri, 10 May 2013 20:31:49 +0900
Make default itemFn use text instead of value.

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
jquery.lensy.js file | annotate | diff | comparison | revisions
--- a/jquery.lensy.js Thu May 09 00:42:25 2013 +0900
+++ b/jquery.lensy.js Fri May 10 20:31:49 2013 +0900
@@ -155,7 +155,7 @@
widgetClass: 'lensy-widget',
itemClass: 'lensy-item',
itemActiveClass: 'active',
- itemFn: function(value) { return $('<span>').text(value); },
+ itemFn: function(value, text) { return $('<span>').text(text); },
widgetItemFn: undefined,
filterFn: function(filterString, value) { return value.toLowerCase().indexOf(filterString.toLowerCase()) != -1; }
};