summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2013-01-16 10:45:59 +0000
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2013-01-16 10:45:59 +0000
commit004ffac63fcc26ea1c3ff70e64a8ab626a09ec25 (patch)
treee880ec0d889bbe24ddf41674b0d6df9069d47cfd
parentce3aa51e2d6452ad324b8a95541b1e33c88ea950 (diff)
Add parameter *DROP-UNFILTERED* to control whether unauthenticated comments are to be dropped immediately.
-rw-r--r--site.lisp2
-rw-r--r--static-files/js/comment-submission.js2
-rw-r--r--templates/article.html7
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 <a href=\"http://en.wikipedia.org/w/index.php?title=Hashcash&oldid=417692755\">Hashcash</a>-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 @@
</div>
<div class="comment-form-input">
<input id="comment-form-input-{field-id|html-attr-value}"
- name="{field-id|html-attr-value}" type="text" />
+ name="{field-id|html-attr-value}" type="text"
+ {.section require-js}disabled="disabled"{.end} />
</div>
</div>
{.end}
@@ -77,14 +78,14 @@
</div>
<div class="comment-form-input">
<textarea id="comment-body" cols="60" rows="15"
- name="body"></textarea>
+ name="body" {.section require-js}disabled="disabled"{.end}></textarea>
</div>
</div>
</div>
<div>
<input type="submit"
value="{submit-button-label|html-attr-value}"
- class="comment-submit-button" />
+ class="comment-submit-button" {.section require-js}disabled="disabled"{.end} />
</div>
</form>
{.end}