make Castelnau street exceptions case-insensitive (#8015)
This commit is contained in:
parent
65cabc8cc2
commit
1b7fda76f4
|
@ -142,7 +142,12 @@ div#centre { padding-top: 45px; margin-top: 0px; }
|
|||
[end]
|
||||
<!-- remove Castelnau street exceptions -->
|
||||
<script type="text/javascript">
|
||||
$('#castelnau-exceptions li:not(:contains('+$('#castelnau-exceptions').data('filtre-voie')+'))').remove();
|
||||
// add case-insensitive 'icontains' selector
|
||||
jQuery.expr[':'].icontains = function(a, i, m) {
|
||||
return jQuery(a).text().toUpperCase()
|
||||
.indexOf(m[3].toUpperCase()) >= 0;
|
||||
};
|
||||
$('#castelnau-exceptions li:not(:icontains('+$('#castelnau-exceptions').data('filtre-voie')+'))').remove();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Reference in New Issue