From 4cf8fa7b98afc1fda83d5eca0e1151a8f529e1bc Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 3 Oct 2008 15:02:59 +0000 Subject: [PATCH] more trailing_javascript --- webcit/notes.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/webcit/notes.c b/webcit/notes.c index d08b0777f..9a090245c 100644 --- a/webcit/notes.c +++ b/webcit/notes.c @@ -75,8 +75,8 @@ void display_vnote_div(struct vnote *v) { escputs(v->body); wprintf("\n"); // end body div - wprintf("\n"); - - wprintf("
uid); // begin resize handle div wprintf("class=\"stickynote_resize\" "); @@ -351,12 +348,14 @@ void display_note(long msgnum, int unread) { /* uncomment these lines to see ugly debugging info - wprintf(""); + StrBufAppendPrintf(WC->trailing_javascript, + "document.write('L: ' + $('note-%s').style.left + '; ');", v->uid); + StrBufAppendPrintf(WC->trailing_javascript, + "document.write('T: ' + $('note-%s').style.top + '; ');", v->uid); + StrBufAppendPrintf(WC->trailing_javascript, + "document.write('W: ' + $('note-%s').style.width + '; ');", v->uid); + StrBufAppendPrintf(WC->trailing_javascript, + "document.write('H: ' + $('note-%s').style.height + '
');", v->uid); */ vnote_free(v); -- 2.30.2