]> code.citadel.org Git - citadel.git/blobdiff - webcit/roomops.c
Search box is only enabled when the server's full text index is enabled.
[citadel.git] / webcit / roomops.c
index accf93e6dae453db9ac1b4aaddcd0858bdd2e89b..bc87ee135829bdab074ed914b3cc250afb70be33 100644 (file)
@@ -422,8 +422,9 @@ void embed_search_o_matic(void) {
        wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
        wprintf("<label for=\"search_name\">");
        wprintf(_("Search: "));
-       wprintf("</label> <input "
-               "type=\"text\" name=\"query\" size=\"15\" maxlength=\"128\" "
+       wprintf("</label> <input ");
+       wprintf("%s", serv_info.serv_fulltext_enabled ? "" : "disabled ");
+       wprintf("type=\"text\" name=\"query\" size=\"15\" maxlength=\"128\" "
                "id=\"search_name\" class=\"inputbox\">\n"
        );
        wprintf("</form>\n");