mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 23:58:15 -05:00
Aligned formatting.
This commit is contained in:
@@ -217,13 +217,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<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() {
|
||||||
@@ -239,29 +239,29 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Change hash for page-reload
|
// Change hash for page-reload
|
||||||
$('.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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user