Aligned formatting.

This commit is contained in:
Kristof Mattei
2022-02-04 14:04:05 -08:00
committed by GitHub
parent d2a6409381
commit 3b946e512c

View File

@@ -219,11 +219,11 @@
<script type="application/javascript"> <script type="application/javascript">
$(function() { $(function() {
$('#id_search-trigram_threshold').get(0).type = 'range'; $('#id_search-trigram_threshold').get(0).type = 'range';
}) });
function applyPreset(preset) { function applyPreset(preset) {
$('#id_search-preset').val(preset) $('#id_search-preset').val(preset);
$('#search_form_button').click() $('#search_form_button').click();
} }
function copyToken() { function copyToken() {
@@ -242,23 +242,23 @@
$('.nav-tabs a').on('shown.bs.tab', function(e) { $('.nav-tabs a').on('shown.bs.tab', function(e) {
window.location.hash = e.target.hash; window.location.hash = e.target.hash;
}) })
{% comment %}
// listen for events // listen for events
{% comment %} $(document).ready(function(){ $(document).ready(function() {
hideShow() hideShow()
// call hideShow when the user clicks on the mealplan_autoadd checkbox // call hideShow when the user clicks on the mealplan_autoadd checkbox
$("#id_shopping-mealplan_autoadd_shopping").click(function(event) { $("#id_shopping-mealplan_autoadd_shopping").click(function(event) {
hideShow() hideShow();
}); });
}) })
function hideShow() { function hideShow() {
if(document.getElementById('id_shopping-mealplan_autoadd_shopping').checked == true) if(document.getElementById('id_shopping-mealplan_autoadd_shopping').checked == true) {
{
$('#div_id_shopping-mealplan_autoexclude_onhand').show(); $('#div_id_shopping-mealplan_autoexclude_onhand').show();
$('#div_id_shopping-mealplan_autoinclude_related').show(); $('#div_id_shopping-mealplan_autoinclude_related').show();
} }
else else {
{
$('#div_id_shopping-mealplan_autoexclude_onhand').hide(); $('#div_id_shopping-mealplan_autoexclude_onhand').hide();
$('#div_id_shopping-mealplan_autoinclude_related').hide(); $('#div_id_shopping-mealplan_autoinclude_related').hide();
} }