Ignore:
Timestamp:
Feb 8, 2010, 3:23:01 AM (14 years ago)
Author:
gav
Message:

Add toggleWithImgAndEffect to JsUtil.
Replace control divs with our new JsUtil toggleControl taglib.
Small CSS adjustment to asset tree pane close.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/taskDetailed/show.gsp

    r263 r323  
    8585                                    <tr class="prop">
    8686                                        <td valign="top" class="name">
    87                                             <div id="modControlClosed">
    88                                                 <a href='' onclick="showElement('modifications');
    89                                                                                     Element.hide('modControlClosed');
    90                                                                                     Element.show('modControlOpened');
    91                                                                                     return false">
    92                                                     Modifications <img  src="${resource(dir:'images/skin',file:'bullet_toggle_plus.png')}" alt="Show" />
    93                                                 </a>
    94                                             </div>
    95                                             <div id="modControlOpened" style="display:none;">
    96                                                 <a href='' onclick="hideElement('modifications');
    97                                                                                     Element.hide('modControlOpened');
    98                                                                                     Element.show('modControlClosed');
    99                                                                                     return false">
    100                                                     Modifications <img  src="${resource(dir:'images/skin',file:'bullet_toggle_minus.png')}" alt="Hide" />
    101                                                 </a>
    102                                             </div>
     87
     88                                            <jsUtil:toggleControl toggleId="modifications"
     89                                                                                    imageId="modificationsImg"
     90                                                                                    closedImgUrl="${resource(dir:'images/skin',file:'bullet_toggle_plus.png')}"
     91                                                                                    openImgUrl="${resource(dir:'images/skin',file:'bullet_toggle_minus.png')}"
     92                                                                                    effect="fade"
     93                                                                                    text="Modifications"
     94                                                                                    />
    10395                                        </td>
    10496
Note: See TracChangeset for help on using the changeset viewer.