aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-01-21 01:35:50 -0500
committerDavid Lawrence <dlawrence@mozilla.com>2011-01-21 01:35:50 -0500
commit4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378 (patch)
treeb3bc73addf7518b4add83f4053d537ffba4dde2d /js
parent7f5eb650ab8f624efe9f4fb6b66c78d8e11539e3 (diff)
downloadbugs-4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378.tar
bugs-4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378.tar.gz
bugs-4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378.tar.bz2
bugs-4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378.tar.xz
bugs-4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378.zip
Bug 626292: "Make description private" checkbox should set bz_private class on the comment box
r/a=mkanat
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');
}
}