From 8f9a126924c77395d608f8e321f256731e2c8551 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 19 Oct 2015 16:56:06 +0200 Subject: [PATCH] Remove django_js_reverse functionality This is the first step to completely remove the current UI --- booking/templates/booking/duck_list.html | 43 ------------------------ booking/templates/front_template.html | 1 - booking/tests.py | 8 ----- duckbook/settings.py | 1 - 4 files changed, 53 deletions(-) diff --git a/booking/templates/booking/duck_list.html b/booking/templates/booking/duck_list.html index 1cd16a5..5d280d3 100644 --- a/booking/templates/booking/duck_list.html +++ b/booking/templates/booking/duck_list.html @@ -21,46 +21,3 @@
{% endif %} {% endblock %} - -{% block endscript %} -$('.complist-button').click(function() { - duck_id = $(this).attr('id').replace(/^duck-complist-/, ''); - - if (isNaN(duck_id) || (duck_id.trim() == '')) { - return; - } - - var url = Urls['api:complist'](duck_id); - var dialog = $('
').appendTo('body'); - - $.getJSON(url, function(data) { - var items = []; - - $.each(data, function(key, item) { - items.push('
  • ' + item.name + ' (' + item.level + ')
  • '); - }); - - $('