Skip to content

Commit

Permalink
Merge pull request #51 from BabenkoOleg/bugfix-sorted
Browse files Browse the repository at this point in the history
Тип sorted изменён на object
  • Loading branch information
Iliya Garakh authored Nov 25, 2016
2 parents f0f2dc3 + 8f55d44 commit 4887af8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kladr/js/kladr.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
var changeEvent = 'kladr_change.setvalues',
types = $.kladr.type,
filtered = {},
sorted = [],
sorted = {},
$inputs, t;

if (!~$.inArray($.type(values), ['object', 'array'])) {
Expand Down Expand Up @@ -644,7 +644,7 @@
value = '';
label = defaultOptions.noResultText;
if(label == null || label == '')
return;
return;
$a = $('<a data-val="' + value + '">' + label + '</a>');
$a.data('kladr-object', {});

Expand All @@ -653,7 +653,7 @@
.appendTo($ac);
}



/**
* Позиционирует выпадающий список на странице
Expand Down

0 comments on commit 4887af8

Please sign in to comment.