Skip to content

Commit

Permalink
position reply box sooner
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytierney committed Jun 22, 2011
1 parent ad07f35 commit 61596d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion css/sc.css
Expand Up @@ -463,7 +463,6 @@ div.message div.message_date {
display: none;
position: absolute;
width: 40em;
top: 2em;
left: 50%;
margin-left: -20em;
background-color: #FFF;
Expand Down
4 changes: 2 additions & 2 deletions js/sc.board.js
Expand Up @@ -640,7 +640,7 @@ SC.ReplyCreateForm.prototype = {
},
createEl: function(data, dont_show) {
if(data && data.content) {
this.el = $(document.createElement("div")).attr("id", this.el_id).addClass("sc_create_reply").addClass("rnd").addClass("bshd");;
this.el = $(document.createElement("div")).attr("id", this.el_id).addClass("sc_create_reply").addClass("rnd").addClass("bshd");
this.el.append(data.content);
$("body").append(this.el);
this.cacheElements().insertElements().bindEvents();
Expand All @@ -661,9 +661,9 @@ SC.ReplyCreateForm.prototype = {
else {
this.loadEl();
}
this.el.css({top:$(window).scrollTop()+20});
this.text.focus();
this.callHook("sc_replyform_show");
this.el.css({top:$(document.body).scrollTop()+20});
return this;
},
hide: function() {
Expand Down

0 comments on commit 61596d4

Please sign in to comment.