Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data("autocomplete")._renderItem = function(ul, item) {
- var template;
- if (item.isActive === true) {
- template = "<a>" + item.label + item.desc + item.status + "</a>";
- } else {
- template = "<a >" + item.label + item.desc + "<span class='inactive'>" + item.status
- + "</span></a>";
- }
- return $("<li>")
- .append(template) // .append("<a>" + item.label + item.desc + "</a>")
- .appendTo(ul);
- };
- },
- .data("autocomplete")._renderItem = function (ul, item) {
- var template;
- if (item.isActive === true) {
- template = "<a>" + item.label + item.desc + item.status + "</a>";
- } else {
- template = "<a >" + item.label + item.desc + "<span class='inactive'>" + item.status + "</span></a>";
- }
- return $("<li>")
- //missing this
- .data( "item.autocomplete", item )
- .append(template)
- .appendTo(ul);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement