Skip to content

Commit

Permalink
Dist: v1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bcinarli committed Jan 25, 2016
1 parent 0a36ae5 commit 71a6ffb
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 49 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uxrocket.autocomplete",
"version": "1.9.0",
"version": "1.9.1",
"homepage": "https://github.com/uxrocket/uxrocket.autocomplete",
"authors": [
"Bilal Çınarlı <[email protected]>"
Expand Down
91 changes: 46 additions & 45 deletions dist/uxrocket.autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,60 +41,60 @@
list : {
wrap: '<ul></ul>',
item: '' +
'<li>' +
' <a {{#if url}}href="{{url}}"{{/if}}>' +
' {{{name}}}' +
' {{#if title}}' +
' <br /><em>{{substr title 50}}</em>' +
' {{/if}}' +
' </a>' +
'</li>'
'<li>' +
' <a {{#if url}}href="{{url}}"{{/if}}>' +
' {{{name}}}' +
' {{#if title}}' +
' <br /><em>{{substr title 50}}</em>' +
' {{/if}}' +
' </a>' +
'</li>'
},
image : {
wrap: '<ul></ul>',
item: '' +
'<li>' +
' <a {{#if url}}href="{{url}}"{{/if}}>' +
' <span class="item-image"><img src="{{image}}"/></span> ' +
' {{{name}}}' +
' {{#if title}}' +
' <br /><em>{{substr title 50}}</em>' +
' {{/if}}' +
' </a>' +
'</li>'
'<li>' +
' <a {{#if url}}href="{{url}}"{{/if}}>' +
' <span class="item-image"><img src="{{image}}"/></span> ' +
' {{{name}}}' +
' {{#if title}}' +
' <br /><em>{{substr title 50}}</em>' +
' {{/if}}' +
' </a>' +
'</li>'
},
category: {
wrap: '<ul></ul>',
head: '' +
'<li class="uxitd-autocomplete-category ui-autocomplete-category">' +
' <span class="uxitd-category-head" title="{{category}}">{{substr category 25}}</span>' +
'</li>',
'<li class="uxitd-autocomplete-category ui-autocomplete-category">' +
' <span class="uxitd-category-head" title="{{category}}">{{substr category 25}}</span>' +
'</li>',
item: '' +
'<li>' +
' <a {{#if url}}href="{{url}}"{{/if}}>' +
' {{{name}}}' +
' {{#if title}}' +
' <br /><em>{{substr title 50}}</em>' +
' {{/if}}' +
' </a>' +
'</li>'
'<li>' +
' <a {{#if url}}href="{{url}}"{{/if}}>' +
' {{{name}}}' +
' {{#if title}}' +
' <br /><em>{{substr title 50}}</em>' +
' {{/if}}' +
' </a>' +
'</li>'
},
tree : {
wrap: '<ul></ul>',
head: '' +
'<li class="uxitd-autocomplete-category ui-autocomplete-category">' +
' <span class="uxitd-category-head" title="{{category}}">{{substr category 25}}</span>' +
'</li>',
'<li class="uxitd-autocomplete-category ui-autocomplete-category">' +
' <span class="uxitd-category-head" title="{{category}}">{{substr category 25}}</span>' +
'</li>',
item: '' +
'<li>' +
' <a {{#if url}}href="{{url}}"{{/if}}>' +
' <span class="item-image"><img src="{{image}}"/></span> ' +
' {{{name}}}' +
' {{#if title}}' +
' <br /><em>{{substr title 50}}</em>' +
' {{/if}}' +
' </a>' +
'</li>'
'<li>' +
' <a {{#if url}}href="{{url}}"{{/if}}>' +
' <span class="item-image"><img src="{{image}}"/></span> ' +
' {{{name}}}' +
' {{#if title}}' +
' <br /><em>{{substr title 50}}</em>' +
' {{/if}}' +
' </a>' +
'</li>'
}
},
events = {
Expand Down Expand Up @@ -269,8 +269,9 @@

if(_opts.tabSelect === true){
// Tab Key Control
$el.on(events.keydown, function(e){
var keyCode = e.keyCode || e.which;
$el.on(events.keydown, function(event){
var keyCode = event.keyCode || event.which;

if (keyCode == 9) {
var autocomplete = $el.data("ui-autocomplete");
// Ui Menu Item Regex set ui item
Expand All @@ -285,7 +286,7 @@
});

if (autocomplete.selectedItem) {
autocomplete._trigger( "select", event, {item: autocomplete.selectedItem});
autocomplete._trigger("select", event, {item: autocomplete.selectedItem});
$el.val(autocomplete.selectedItem.label);
}
}
Expand Down Expand Up @@ -575,8 +576,8 @@
};

// version
ux.version = '1.9.0';
ux.version = '1.9.1';

// settings
ux.settings = defaults;
})(jQuery);
})(jQuery);
Loading

0 comments on commit 71a6ffb

Please sign in to comment.