summaryrefslogtreecommitdiff
path: root/modules/comment/comment-node-form.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-11 22:19:46 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-11 22:19:46 +0000
commite888f0061cb7ca2f07b38ad4ff09da99faa75580 (patch)
treeb1ffa36ead61e0061e99fdb4c33a8ea823eb4af5 /modules/comment/comment-node-form.js
parentf278da9e50815f279ce4c7bda993f5d21b43efa3 (diff)
downloadbrdo-e888f0061cb7ca2f07b38ad4ff09da99faa75580.tar.gz
brdo-e888f0061cb7ca2f07b38ad4ff09da99faa75580.tar.bz2
#323112 by dmitrig01, kkaefer, quicksketch, frando and many many more: Now presenting... Vertical Tabs. Fantastic new UI improvement for node forms and hopefully more in the future.
Diffstat (limited to 'modules/comment/comment-node-form.js')
-rw-r--r--modules/comment/comment-node-form.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/comment/comment-node-form.js b/modules/comment/comment-node-form.js
new file mode 100644
index 000000000..9c7dea7cc
--- /dev/null
+++ b/modules/comment/comment-node-form.js
@@ -0,0 +1,13 @@
+// $Id$
+
+(function($) {
+
+Drupal.behaviors.commentFieldsetSummaries = {
+ attach: function(context) {
+ $('fieldset#edit-comment-settings', context).setSummary(function(context) {
+ return Drupal.checkPlain($('input:checked', context).parent().text());
+ });
+ }
+};
+
+})(jQuery);