Skip to content

Commit

Permalink
fix: [domain search] fix template domain types filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed May 24, 2023
1 parent 19f154a commit a65ddee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions var/www/templates/domains/block_domains_name_search.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ <h5 class="card-title">Search Domain by name:</h5>
</label>
</div>
<div class="custom-control custom-switch">
<input class="custom-control-input" type="checkbox" name="domain_regular_switch" value="True" id="domain_regular_switch"{%if domains_types%}{%if 'regular' in domains_types%}checked{%endif%}{%endif%}>
<label class="custom-control-label" for="domain_regular_switch">
<input class="custom-control-input" type="checkbox" name="domain_web_switch" value="True" id="domain_web_switch"{%if domains_types%}{%if 'web' in domains_types%}checked{%endif%}{%endif%}>
<label class="custom-control-label" for="domain_web_switch">
<span class="badge badge-warning"><i class="fab fa-html5"></i> Web Domains</span>
</label>
</div>
Expand All @@ -32,8 +32,8 @@ <h5 class="card-title">Search Domain by name:</h5>

<script>
function searchDomainName() {
var all_domain_types = ['onion', 'regular'] // TODO: load from flask
// var l_domains_types = [];
var all_domain_types = ['onion', 'web'] // TODO: load from flask
var l_domains_types = [];
console.log(document.getElementById('in_search_name'));

var data = document.getElementById('in_search_name').value;
Expand Down

0 comments on commit a65ddee

Please sign in to comment.