From fab91a0129a4c090bc6a8dbac8f652d3756f34a4 Mon Sep 17 00:00:00 2001 From: Simone Dalmasso Date: Mon, 25 Jul 2016 11:59:22 +0200 Subject: [PATCH] re enable publish as layer group --- geonode/maps/templates/maps/map_detail.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/geonode/maps/templates/maps/map_detail.html b/geonode/maps/templates/maps/map_detail.html index 53f233e52f0..799413bd4cc 100644 --- a/geonode/maps/templates/maps/map_detail.html +++ b/geonode/maps/templates/maps/map_detail.html @@ -203,8 +203,9 @@

{% trans "Map WMS" %}

{% endif %} {% if "change_resourcebase" in perms_list %}

{% trans "Publish local map layers as WMS layer group" %}

- {% trans "Publish Map WMS" %} + {% trans "Publish Map WMS" %} {% endif %} +
{% endif %} @@ -241,7 +242,7 @@

{% trans "Map WMS" %}

{% verbatim %} // Publish layer group // TODO: this should really not be inside a script tag... - var $wmsBtn = $(".layer-group .btn"), + var $wmsBtn = $("#layer-group"), layerGroupElTpl; if ($wmsBtn.length > 0) { @@ -269,7 +270,7 @@

{% trans "Map WMS" %}

}) .always(function(){ - $(".layer-group dl").html(layerGroupElTpl); + $("#layer-group-dl").html(layerGroupElTpl); }); });