File counting for directory rooms now checks both QR_DIRECTORY and
authorDave West <davew@uncensored.citadel.org>
Tue, 6 Nov 2007 23:09:33 +0000 (23:09 +0000)
committerDave West <davew@uncensored.citadel.org>
Tue, 6 Nov 2007 23:09:33 +0000 (23:09 +0000)
QR_VISDIR before displaying the count of files.

webcit/roomops.c
webcit/static/wclib.js

index 04d2b6e726ea3c4fb7fb5bb1231b1b8fe0e41ba3..27193c75a2624537d39a9eab4348c0d659bbf59d 100644 (file)
@@ -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);
index 1742b6c342346df84898816a8c32e3ba2889436d..09a5c8ad44733ba70d3efeb2e4425a16a3fbb4f4 100644 (file)
@@ -560,7 +560,8 @@ function add_new_note() {
        new_eid = CtdlRandomString();
 
        $('new_notes_here').innerHTML = $('new_notes_here').innerHTML
-               + '<IMG ALIGN=MIDDLE src=\"static/storenotes_48x.gif\">'
+               + '<IMG ALIGN=MIDDLE src=\"static/storenotes_48x.gif\" id=\"' + new_eid + '\" alt=\"Note\" class=\"notes\">'
+               + '<script type=\"text/javascript\">new Draggable (\"%s\", {revert:true})</script>'
                + '<span id=\"note' + new_eid + '\">' + Date() + '</span><br />'
        ;