
adrian at gossamer-threads
Mar 7, 2009, 12:06 AM
Post #2 of 3
(847 views)
Permalink
|
|
Re: [8442] Restore the subelement hint, so that editors can get some idea
[In reply to]
|
|
On Tue, 3 Mar 2009 23:01:12 -0800 "David E. Wheeler" <david [at] kineticode> wrote: > On Mar 3, 2009, at 10:57 PM, theory [at] bricolage wrote: > > > Restore the subelement hint, so that editors can get some idea WTF > > each subelement is when it is not currently revealed. > > I'm thinking it might make sense to also hide the "Add Element" and > "Bulk Edit" buttons when a subelement is toggled closed. Thoughts? No thoughts on that aspect of the UI (since I'm not a "real" user), but one suggestion is to hide the hint and only show it when the container is collapsed: Index: comp/widgets/container_prof/container.mc =================================================================== --- comp/widgets/container_prof/container.mc>---(revision 8465) +++ comp/widgets/container_prof/container.mc>---(working copy) @@ -7,7 +7,7 @@ </legend> % } % if ($hint_val) { -<p class="hint"><strong><% $hint_name %>:</strong> <% $hint_val %></p> +<p class="hint" id="element_<% $id %>_hint" style="display: none"><strong><% $hint_name %>:</strong> <% $hint_val %></p> % } % if ($type->is_related_story) { <div id="element_<% $id %>_rel_story"> Index: /var/home/worldhealth/trunk/comp/media/js/lib.js =================================================================== --- /var/home/worldhealth/trunk/comp/media/js/lib.js>---(revision 8465) +++ /var/home/worldhealth/trunk/comp/media/js/lib.js>---(working copy) @@ -1543,6 +1543,7 @@ - toggle: function( eid, anchor ) { Effect.toggle('element_' + eid, 'blind', {duration: 0.3}); + Effect.toggle('element_' + eid + '_hint', 'blind', {duration: 0.3}); var displayed = $('container_' + eid + '_displayed'); if ( displayed.value == '0' ) { // Display it. Adrian
|