diff options
-rw-r--r-- | chimere/forms.py | 2 | ||||
-rw-r--r-- | chimere/static/chimere/js/SimplePanZoom.js | 6 | ||||
-rw-r--r-- | chimere/templatetags/chimere_tags.py | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/chimere/forms.py b/chimere/forms.py index d877a22..d3c55ce 100644 --- a/chimere/forms.py +++ b/chimere/forms.py @@ -163,8 +163,6 @@ class MarkerAdminFormBase(forms.ModelForm): if not pm.mandatory or self.cleaned_data[pm.getNamedId()]: continue pm_cats = pm.subcategories.all() - print self.cleaned_data['categories'] - print pm_cats if not pm_cats or \ [submited_cat for submited_cat in self.cleaned_data['categories'] if submited_cat in pm_cats]: diff --git a/chimere/static/chimere/js/SimplePanZoom.js b/chimere/static/chimere/js/SimplePanZoom.js index e42dc54..45619c3 100644 --- a/chimere/static/chimere/js/SimplePanZoom.js +++ b/chimere/static/chimere/js/SimplePanZoom.js @@ -92,6 +92,11 @@ OpenLayers.Control.SimplePanZoom = OpenLayers.Class(OpenLayers.Control.PanZoom, buttons: null, /** + * Top position of the slider: change if the Y position of the slider have change + */ + startTop: 75, + + /** * APIMethod: destroy */ destroy: function() { @@ -200,7 +205,6 @@ OpenLayers.Control.SimplePanZoom = OpenLayers.Class(OpenLayers.Control.PanZoom, this.zoombarDiv = div; this.div.appendChild(div); - this.startTop = 75; this.div.appendChild(slider); this.map.events.register("zoomend", this, this.moveZoomBar); diff --git a/chimere/templatetags/chimere_tags.py b/chimere/templatetags/chimere_tags.py index dbda7c3..46fb422 100644 --- a/chimere/templatetags/chimere_tags.py +++ b/chimere/templatetags/chimere_tags.py @@ -170,7 +170,6 @@ bounds.extend(new OpenLayers.LonLat(%f, %f)); context_data['p_checked_categories'] = "[]" context_data['dynamic_categories'] = 'true' \ if area and area.dynamic_categories else 'false' - print context_data if 'request' not in context: return context_data request = context['request'] |