Browse Source

Fix style DOM usage, fix step template filter function

Gu1 11 years ago
parent
commit
2834eec15a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ffdnispdb/templates/site.js
  2. 1 1
      ffdnispdb/views.py

+ 1 - 1
ffdnispdb/templates/site.js

@@ -138,7 +138,7 @@ L.Control.Pinpoint = L.Control.extend({
         this._button = L.DomUtil.create('a', 'leaflet-control-pinpoint-button', this._container);
         this._button.href = '#';
         this._button.innerHTML = '<i class="icon-hand-down"></i>';
-        this._button.style = 'cursor: pointer';
+        this._button.style.cursor = 'pointer';
         this._button.title = {{ _('Find ISPs near you')|js_str }};
         L.DomEvent
          .addListener(this._button, 'click', L.DomEvent.stop)

+ 1 - 1
ffdnispdb/views.py

@@ -438,7 +438,7 @@ def locale_selector():
 @ispdb.app_template_filter('step_to_label')
 def step_to_label(step):
     if step:
-        return u"<a href='#' rel='tooltip' data-placement='right' title='" + STEPS[step] + "'><span class='badge badge-" + STEPS_LABELS[step] + "'>" + str(step) + "</span></a>"
+        return u"<a href='#' data-toggle='tooltip' data-placement='right' title='" + STEPS[step] + "'><span class='badge badge-" + STEPS_LABELS[step] + "'>" + str(step) + "</span></a>"
     else:
         return u'-'