|
|
@ -32,7 +32,7 @@ |
|
|
|
function quoteResult(result) { |
|
|
|
function quoteResult(result) { |
|
|
|
var reply = $("#reply"), |
|
|
|
var reply = $("#reply"), |
|
|
|
subject = $("#reply_subject"), |
|
|
|
subject = $("#reply_subject"), |
|
|
|
content = $("#reply_content"); |
|
|
|
focusElement = jQuery("#reply #message-form"); |
|
|
|
|
|
|
|
|
|
|
|
subject.val(result.subject); |
|
|
|
subject.val(result.subject); |
|
|
|
|
|
|
|
|
|
|
@ -43,10 +43,9 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
reply.slideDown(); |
|
|
|
reply.slideDown(); |
|
|
|
content.focus(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('html, body').animate({ |
|
|
|
$('html, body').animate({ |
|
|
|
scrollTop: content.offset().top |
|
|
|
scrollTop: focusElement.offset().top |
|
|
|
}, 1000); |
|
|
|
}, 1000); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|