|
Lines 737-747
Link Here
|
| 737 |
<label for="new_filter">Name:</label> |
737 |
<label for="new_filter">Name:</label> |
| 738 |
<input id="new_filter" name="new_filter" type="text"> |
738 |
<input id="new_filter" name="new_filter" type="text"> |
| 739 |
<a id="save_new_filter" class="btn btn-default btn-xs" href="#">Save</a> |
739 |
<a id="save_new_filter" class="btn btn-default btn-xs" href="#">Save</a> |
| 740 |
</br>OR</br> |
740 |
<span class="existing_filters_section"> |
| 741 |
<h6>Replace existing search filter:</h6> |
741 |
</br>OR</br> |
| 742 |
<label for="existing_filters">Choose</label> |
742 |
<h6>Replace existing search filter:</h6> |
| 743 |
<select id="existing_filters" name="existing_filters" class="search_filters_list"></select> |
743 |
<label for="existing_filters">Choose</label> |
| 744 |
<a id="replace_existing_filter" class="btn btn-default btn-xs" href="#">Replace</a> |
744 |
<select id="existing_filters" name="existing_filters" class="search_filters_list"></select> |
|
|
745 |
<a id="replace_existing_filter" class="btn btn-default btn-xs" href="#">Replace</a> |
| 746 |
</span> |
| 745 |
</div> |
747 |
</div> |
| 746 |
<div class="modal-footer"> |
748 |
<div class="modal-footer"> |
| 747 |
<a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a> |
749 |
<a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a> |
|
Lines 840-845
Link Here
|
| 840 |
.then(resolve, reject); |
842 |
.then(resolve, reject); |
| 841 |
}) |
843 |
}) |
| 842 |
.then(function(filters) { |
844 |
.then(function(filters) { |
|
|
845 |
if( filters.length == 0 ){ |
| 846 |
$(".existing_filters_section").hide(); |
| 847 |
} else { |
| 848 |
$(".existing_filters_section").show(); |
| 849 |
} |
| 843 |
filters.forEach(function(filter) { |
850 |
filters.forEach(function(filter) { |
| 844 |
const opt = $("<option/>"); |
851 |
const opt = $("<option/>"); |
| 845 |
select.append(opt); |
852 |
select.append(opt); |
| 846 |
- |
|
|