From 5f501caeb24637492e1558c15bc317f97106cee8 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 13 Jan 2016 20:25:37 +0100 Subject: [PATCH] Fix javascript errors --- stages/static/js/attribution.js | 3 ++- templates/attribution.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stages/static/js/attribution.js b/stages/static/js/attribution.js index 4fa78b2..2140ea1 100644 --- a/stages/static/js/attribution.js +++ b/stages/static/js/attribution.js @@ -1,4 +1,5 @@ function update_periods(section_id) { + if (!section_id) return; $.getJSON('/section/' + section_id + '/periods/', function(data) { var sel = $('#period_select'); sel.append($("