1
0
Fork 0

Make satellite filtering case insensitive (Re: #51)

merge-requests/53/head
Nikos Roussos 2015-09-09 00:02:19 +03:00
parent 0f7791087b
commit 446a439726
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@ $(document).ready(function() {
var t = $('input');
t.bind('propertychange keyup input paste', function(event) {
var term = t.val();
var term = t.val().toLowerCase();
if (term !== '') {
$('.satellite-group-item').hide();
var results = $.grep(items, function(e) {

View File

@ -47,7 +47,8 @@
{% block content %}
<div class="row sats">
{% for sat in satellites %}
<div class="col-md-4 col-sm-6 col-xs-12 satellite-group-item" data-selector="{{ sat.name|lower }}{{ sat.norad_cat_id }}{{ sat.names|lower }}">
<div class="col-md-4 col-sm-6 col-xs-12 satellite-group-item"
data-selector="{{ sat.name|lower }}{{ sat.norad_cat_id }}{{ sat.names|lower }}">
<a href="{% url 'satellite' norad=sat.norad_cat_id %}" class="satellite-item">
<div class="row">
<div class="col-xs-3">