Commit 45071f40 authored by Guy Pyrzak's avatar Guy Pyrzak

Bug 601218: Do not display (show) when the CC list is empty

r=LpSolit, a=LpSolit
parent af7acc5c
...@@ -810,9 +810,11 @@ ...@@ -810,9 +810,11 @@
including you including you
[% END %] [% END %]
[% END %] [% END %]
[% IF user.id || bug.cc.size %]
<span id="cc_edit_area_showhide_container" class="bz_default_hidden"> <span id="cc_edit_area_showhide_container" class="bz_default_hidden">
(<a href="#" id="cc_edit_area_showhide">[% IF user.id %]edit[% ELSE %]show[% END %]</a>) (<a href="#" id="cc_edit_area_showhide">[% IF user.id %]edit[% ELSE %]show[% END %]</a>)
</span> </span>
[% END %]
<div id="cc_edit_area"> <div id="cc_edit_area">
<br> <br>
[% IF user.id %] [% IF user.id %]
...@@ -843,6 +845,7 @@ ...@@ -843,6 +845,7 @@
[% END %] [% END %]
[% END %] [% END %]
</div> </div>
[% IF user.id || bug.cc.size %]
<script type="text/javascript"> <script type="text/javascript">
hideEditableField( 'cc_edit_area_showhide_container', hideEditableField( 'cc_edit_area_showhide_container',
'cc_edit_area', 'cc_edit_area',
...@@ -850,6 +853,7 @@ ...@@ -850,6 +853,7 @@
'', '',
''); '');
</script> </script>
[% END %]
</td> </td>
</tr> </tr>
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment