Upgrade code for Django 1.9

This commit is contained in:
Claude Paroz 2016-01-15 17:48:08 +01:00
parent 75b0907dc7
commit 473493542c
5 changed files with 12 additions and 8 deletions

View file

@ -1,3 +1,5 @@
$ = django.jQuery;
function update_periods(section_id) {
if (!section_id) return;
$.getJSON('/section/' + section_id + '/periods/', function(data) {

View file

@ -35,7 +35,8 @@
} catch(er) {}
}
var config = $.cookie = function (key, value, options) {
var $ = django.jQuery;
var config = $.cookie = function (key, value, options) {
// write
if (value !== undefined) {