# HG changeset patch # User neko259 # Date 2016-01-13 11:10:44 # Node ID f9070df07dca86f733abe580e5ea1b77d3ce023c # Parent 35599bce43defba5fbf78c43e51cceea6af64b31 Show reflink popups from left-top always. Don't insert spaces after comma in page list diff --git a/boards/static/js/refpopup.js b/boards/static/js/refpopup.js --- a/boards/static/js/refpopup.js +++ b/boards/static/js/refpopup.js @@ -65,7 +65,9 @@ function showPostPreview(e) { cln.id = 'pstprev_' + pNum; cln.className = 'post_preview'; - cln.style.cssText = 'top:' + y + 'px;' + (x < doc.body.clientWidth/2 ? 'left:' + x + 'px' : 'right:' + parseInt(doc.body.clientWidth - x + 1) + 'px'); +// var newX = x < doc.body.clientWidth/2 ? 'left:' + x : 'right:' + parseInt(doc.body.clientWidth - x - reflink.width()); +// var newY = y < doc.body.clientHeight/2 ? 'top:' + y : 'bottom:' + parseInt(doc.body.clientHeight - y - reflink.height()); + cln.style.cssText = 'left:' + x + 'px; top:' + y + 'px'; cln.addEventListener('mouseout', delPostPreview, false); diff --git a/boards/templates/boards/all_threads.html b/boards/templates/boards/all_threads.html --- a/boards/templates/boards/all_threads.html +++ b/boards/templates/boards/all_threads.html @@ -201,8 +201,7 @@ {% ifequal page current_page.number %} class="current_page" {% endifequal %} - href="{% page_url paginator page %}">{{ page }} - {% if not forloop.last %},{% endif %} + href="{% page_url paginator page %}">{{ page }}{% if not forloop.last %},{% endif %} {% endfor %} {% endwith %} ] diff --git a/boards/templates/boards/feed.html b/boards/templates/boards/feed.html --- a/boards/templates/boards/feed.html +++ b/boards/templates/boards/feed.html @@ -61,8 +61,7 @@ {% ifequal page current_page.number %} class="current_page" {% endifequal %} - href="{% page_url paginator page %}">{{ page }} - {% if not forloop.last %},{% endif %} + href="{% page_url paginator page %}">{{ page }}{% if not forloop.last %},{% endif %} {% endfor %} {% endwith %} ]