From 004ffac63fcc26ea1c3ff70e64a8ab626a09ec25 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Wed, 16 Jan 2013 10:45:59 +0000 Subject: Add parameter *DROP-UNFILTERED* to control whether unauthenticated comments are to be dropped immediately. --- site.lisp | 2 ++ static-files/js/comment-submission.js | 2 ++ templates/article.html | 7 ++++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/site.lisp b/site.lisp index 6d0b431..e60fda6 100644 --- a/site.lisp +++ b/site.lisp @@ -28,6 +28,8 @@ ;; Otherwise, set it to NIL or comment the line out. (defparameter *wordpress-key* nil) +(defparameter *drop-unfiltered* nil) + (defparameter *default-characteristics-precedence-list* '((("language" . "en")) (("language" . "la")) diff --git a/static-files/js/comment-submission.js b/static-files/js/comment-submission.js index 23dae22..2704b0f 100644 --- a/static-files/js/comment-submission.js +++ b/static-files/js/comment-submission.js @@ -53,4 +53,6 @@ jQuery(function($) { } }); $('.spam-detection-info').html("This website uses a Hashcash-like proof-of-work system for spam detection."); + $('.comment-form').find('input, textarea').removeAttr('disabled'); //.prop('disabled', false); }); + diff --git a/templates/article.html b/templates/article.html index 2df9654..aed5406 100644 --- a/templates/article.html +++ b/templates/article.html @@ -67,7 +67,8 @@
+ name="{field-id|html-attr-value}" type="text" + {.section require-js}disabled="disabled"{.end} />
{.end} @@ -77,14 +78,14 @@
+ name="body" {.section require-js}disabled="disabled"{.end}>
+ class="comment-submit-button" {.section require-js}disabled="disabled"{.end} />
{.end} -- cgit v1.2.3