Commits

Maciej Fijalkowski committed 227c5b7 Draft

improve clicking around

Comments (0)

Files changed (2)

trakker/static/main.js

         var pos = $("#issue" + num).position().top - 50;
         $.scrollTo(pos, 200, {axis: 'y'});
         current = num;
+        window.location.href = window.location.origin + "/#" + num;
     } else {
         current = -1;
     }

trakker/templates/listissues.html

 <ul class="issuelist">
   {% for issue in issues %}
      <li class="issuepreview">
-       <p class="issuethumb" onclick="openissue({{ issue.num }})">
+       <p class="issuethumb" onclick="openissue({{ issue.num }}); return false">
          {{ issue.title }}
        </p>
        <div id="issue{{ issue.num }}" style="display: none">