From 4b73cd994b4bae71fbe803614ca18261e4f3d1bc Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 12 May 2008 17:20:26 +0000 Subject: [PATCH] Internet Exploder fixes --- webcit/notes.c | 41 ++++++++++++++++++++++------------------ webcit/static/webcit.css | 10 ++++++---- 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/webcit/notes.c b/webcit/notes.c index 47249b5b6..664ddb8d5 100644 --- a/webcit/notes.c +++ b/webcit/notes.c @@ -26,9 +26,8 @@ int pastel_palette[9][3] = { void display_vnote_div(struct vnote *v) { int i; - /* begin outer div */ - wprintf("
uid); + wprintf("
uid); // begin outer div wprintf("class=\"stickynote_outer\" "); wprintf("style=\""); wprintf("left: %dpx; ", v->pos_left); @@ -38,9 +37,11 @@ void display_vnote_div(struct vnote *v) { wprintf("background-color: #%02X%02X%02X ", v->color_red, v->color_green, v->color_blue); wprintf("\">"); - /* begin title bar */ - wprintf("
uid); + + + + wprintf("
uid); // begin title bar div wprintf("class=\"stickynote_titlebar\" "); wprintf("onMouseDown=\"NotesDragMouseDown(event,'%s')\" ", v->uid); wprintf("style=\""); @@ -54,8 +55,9 @@ void display_vnote_div(struct vnote *v) { wprintf("src=\"static/8paint16.gif\">"); /* embed color selector */ - wprintf("
uid); - wprintf("class=\"stickynote_palette\" "); + wprintf("
uid); // begin stickynote_palette div + wprintf("class=\"stickynote_palette\">"); + wprintf(""); for (i=0; i<9; ++i) { if ((i%3)==0) wprintf(""); @@ -80,7 +82,8 @@ void display_vnote_div(struct vnote *v) { if (((i+1)%3)==0) wprintf(""); } wprintf("
"); - wprintf("
"); + + wprintf("
"); // end stickynote_palette div wprintf(""); @@ -91,15 +94,17 @@ void display_vnote_div(struct vnote *v) { wprintf("src=\"static/closewindow.gif\">"); wprintf(""); - wprintf("
\n"); + wprintf("
\n"); // end title bar div - /* begin note body */ - wprintf("
uid); + + + + wprintf("
uid); // begin body div wprintf("class=\"stickynote_body\""); wprintf(">"); escputs(v->body); - wprintf("
\n"); + wprintf("
\n"); // end body div wprintf("\n"); - /* begin resize handle */ - wprintf("
uid); + + wprintf("
uid); // begin resize handle div wprintf("class=\"stickynote_resize\" "); wprintf("onMouseDown=\"NotesResizeMouseDown(event,'%s')\"", v->uid); - wprintf(">
"); + wprintf(">
"); // end resize handle div + - /* end of note */ - wprintf("
\n"); + wprintf("
\n"); // end outer div } @@ -245,7 +250,7 @@ void ajax_update_note(void) { return; } - lprintf(9, "Note UID = %s\n", bstr("note_uid")); + // lprintf(9, "Note UID = %s\n", bstr("note_uid")); serv_printf("EUID %s", bstr("note_uid")); serv_getln(buf, sizeof buf); if (buf[0] != '2') { @@ -255,7 +260,7 @@ void ajax_update_note(void) { return; } msgnum = atol(&buf[4]); - lprintf(9, "Note msg = %ld\n", msgnum); + // lprintf(9, "Note msg = %ld\n", msgnum); // Was this request a delete operation? If so, nuke it... if (havebstr("deletenote")) { diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index 48050d3e9..a10154bbc 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -1361,10 +1361,10 @@ li.event_unread span, a.event_read_title { .stickynote_body { position: relative; - width: 100%; - height: 100%; - top: 0px; - left: 0px; + //width: 100%; + //height: 100%; + //top: 0px; + //left: 0px; font-family: "Comic Sans MS", "Verdana", "Bitstream Vera Sans", sans-serif; } @@ -1381,6 +1381,8 @@ li.event_unread span, a.event_read_title { position: absolute; width: 48px; height: 48px; + top: 16px; + left: 0px; background-color: #ffffff; border: 1px solid #333; z-index: 15; -- 2.30.2