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