From e583233496fca9515b879d48c3fcc2316bafd1d2 Mon Sep 17 00:00:00 2001 From: Dave West Date: Tue, 6 Nov 2007 23:09:33 +0000 Subject: [PATCH] File counting for directory rooms now checks both QR_DIRECTORY and QR_VISDIR before displaying the count of files. --- webcit/roomops.c | 2 +- webcit/static/wclib.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webcit/roomops.c b/webcit/roomops.c index 04d2b6e72..27193c75a 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -476,7 +476,7 @@ void embed_room_banner(char *got, int navbar_style) { WC->wc_view = extract_int(&got[4], 11); /* Is this a directory room and does it contain files and how many? */ - if (WC->room_flags & QR_VISDIR) + if ((WC->room_flags & QR_DIRECTORY) && (WC->room_flags & QR_VISDIR)) { serv_puts("RDIR"); serv_getln(buf2, sizeof buf2); diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index 1742b6c34..09a5c8ad4 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -560,7 +560,8 @@ function add_new_note() { new_eid = CtdlRandomString(); $('new_notes_here').innerHTML = $('new_notes_here').innerHTML - + '' + + '\"Note\"' + + '' + '' + Date() + '
' ; -- 2.39.2