diff options
author | David Lawrence <dlawrence@mozilla.com> | 2011-01-21 07:35:50 +0100 |
---|---|---|
committer | David Lawrence <dlawrence@mozilla.com> | 2011-01-21 07:35:50 +0100 |
commit | 4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378 (patch) | |
tree | b3bc73addf7518b4add83f4053d537ffba4dde2d /js | |
parent | 7f5eb650ab8f624efe9f4fb6b66c78d8e11539e3 (diff) | |
download | bugzilla-4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378.tar.gz bugzilla-4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378.tar.xz |
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.js | 6 |
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'); } } |