Browse Source

Search bar fixes for #1187 and #1205 (#1207)

tags/v1.2.0-rc1
Patrick G Lunny Xiao 9 years ago
parent
commit
66124b2373
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      public/js/index.js

+ 3
- 5
public/js/index.js View File

@@ -1523,11 +1523,9 @@ $(function () {

$("#search_repo").on('change paste keyup',function(){
var value = $(this).val();
if(!value){
$('.list-search-style').html('');
} else{
$('.list-search-style').html('.search-list li:not([data-title*="' + value + '"]) {display: none;}');
}
$.map($('.search-list li'), function(i) {
$(i).css("display", (value.trim().length == 0 || $(i).attr("data-title").trim().toLowerCase().indexOf(value.trim().toLowerCase()) > -1) ? "" : "none");
});
});

// Parse SSH Key


Loading…
Cancel
Save