From 6dc79db9a37234cfa8db8325141d9266ac223489 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 2 Jul 2013 20:00:45 +0200 Subject: [PATCH] Move getMore js call in content.html, just needed there --- umap/templates/base.html | 15 --------------- umap/templates/umap/content.html | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/umap/templates/base.html b/umap/templates/base.html index 1fc5f137..2877ef2d 100644 --- a/umap/templates/base.html +++ b/umap/templates/base.html @@ -55,21 +55,6 @@ placeholder: "Type editors nick to add..." }).multiselect(); }); - var getMore = function (e) { - D.Event.stop(e); - D.Xhr.get(this.href, { - callback: function (data) { - var container = this.parentNode; - container.innerHTML = data; - D.DOM.forEach(D.DOM.get('script', container), function (item) { - eval(item.firstChild.textContent); - }); - D.Event.on('.more_button', 'click', getMore); - }, - thisobj: this - }); - } - D.Event.on('.more_button', 'click', getMore); {% endblock %} {% block footer %} diff --git a/umap/templates/umap/content.html b/umap/templates/umap/content.html index 0ea6f098..5191bb19 100644 --- a/umap/templates/umap/content.html +++ b/umap/templates/umap/content.html @@ -59,5 +59,20 @@ listen_form: {id: "map_edit"} }); }); + var getMore = function (e) { + D.Event.stop(e); + D.Xhr.get(this.href, { + callback: function (data) { + var container = this.parentNode; + container.innerHTML = data; + D.DOM.forEach(D.DOM.get('script', container), function (item) { + eval(item.firstChild.textContent); + }); + D.Event.on('.more_button', 'click', getMore); + }, + thisobj: this + }); + } + D.Event.on('.more_button', 'click', getMore); {% endblock bottom_js %} \ No newline at end of file