just something I was experimenting with when I got bored
it's a simple script that just loads the text from a quote and puts it into the quick reply textbox
it's a simple script that just loads the text from a quote and puts it into the quick reply textbox
- code:
- Code:
$(document).ready(function() {
var quote_text_info;
$(".i_icon_quote").parent().click(function(e) {
e.preventDefault();
$.get($(this).attr("href"), function(data) {
quote_text_info = $(data).find("textarea").val();
$('.sceditor-container textarea').val($('.sceditor-container textarea').val()+quote_text_info+"\n");
$("html, body").animate({ scrollTop: $('.sceditor-container textarea').offset().top }, 1000, function() {
$('.sceditor-container textarea').focus();
});
});
});
});