Skip to content

Commit

Permalink
Increased apparent size of vote arrows.
Browse files Browse the repository at this point in the history
Quick reply now auto-focusses in textarea
Filter menu no longer appears on non-list pages
  • Loading branch information
tommoor committed Mar 10, 2013
1 parent aaec994 commit 5644a87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Binary file modified images/arrow-down.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/arrow-up.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions js/hn.js
Expand Up @@ -5,7 +5,7 @@ var hn = {
identport: null,
identelem: null,
endless_loading: false,
endless_preload: 200,
endless_preload: 300,

init: function(){

Expand All @@ -14,21 +14,24 @@ var hn = {
hn.replaceImages();
hn.createSearchBar();
hn.createProfileBubble();
hn.createQuickReply();
hn.createFilterMenu();
hn.augmentStories();
hn.bindEvents();
},

setPage: function(){

switch(window.location.pathname) {
case '/news':
case '/newest':
hn.createFilterMenu();
break;
case '/newcomments':
$('html').addClass('comments');
break;
case '/item':
$('html').addClass('item');
hn.augmentComments();
hn.createQuickReply();
break;
default:
$('html').addClass('news');
Expand Down Expand Up @@ -214,6 +217,7 @@ var hn = {
$point.after($element);
$point.remove();
$textarea.autogrow();
$textarea.focus();

// upon reply
$('form', $element).submit(function(ev){
Expand Down

0 comments on commit 5644a87

Please sign in to comment.