aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/field.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/field.js b/js/field.js
index aa9cd6c7e..621cdf3eb 100644
--- a/js/field.js
+++ b/js/field.js
@@ -443,11 +443,11 @@ function boldOnChange(e, field_id){
}
}
-function updateCommentTagControl(checkbox, form) {
+function updateCommentTagControl(checkbox, field) {
if (checkbox.checked) {
- form.comment.className='bz_private';
+ YAHOO.util.Dom.addClass(field, 'bz_private');
} else {
- form.comment.className='';
+ YAHOO.util.Dom.removeClass(field, 'bz_private');
}
}