kaigou: you live and learn. at any rate, you live. - doug adams (2 live and learn)
锴 angry fishtrap 狗 ([personal profile] kaigou) wrote in [community profile] style_system2009-12-11 10:44 am

the reply box

Where can I find the function that controls the reply box's layout and CSS? I can find references to what I think might be it, in DW's S2 basic source code, but I can't find anything that outlines the actual function. It doesn't seem logical (though it's possible) that it's entirely js-created entirely on-the-fly, seeing how there is CSS in there, but I can't find the mechanisms that would let me fiddle with the reply-box as a whole. Anyone have any ideas?
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)

[personal profile] foxfirefey 2009-12-11 07:38 pm (UTC)(link)
It's in the JS I think. The ID for it is "qrdiv", and a rgrep through the code base finds:

htdocs/js/quickreply.js

With possible things in this:

cgi-bin/weblib.pl: de.id = "qrdiv";
cgi-bin/LJ/S2.pm: # unless we've already inserted the big qrdiv ugliness, do it.
av8rmike: Text: Dreamwidth volunteer (dw_volunteer)

[personal profile] av8rmike 2009-12-11 07:45 pm (UTC)(link)
Actually, it's in weblib.pl, around line #645. The JS only pops up the quick reply box when the "Reply" link is clicked; the actual HTML is handled in the Perl I linked.