Changeset 919

Show
Ignore:
Timestamp:
12/15/06 00:52:52 (2 years ago)
Author:
lknowland
Message:

Updated visual display of the tr associated with the asset detail being shown so as to better provide the user with a visual indicator of which asset detail they are looking at with regards to the listing table.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/mt-static/js/assetdetail.js

    r913 r919  
    1414var opened = false; 
    1515var asset_id = ''; 
     16var detailRowClass = ''; 
     17var orgiRowClass = ''; 
    1618function hasOpened(id) { 
    1719    opened = true; 
    1820    asset_id = id; 
     21    detailRowClass = getByID("asset-" + asset_id); 
     22    origRowClass = detailRowClass.className; 
    1923} 
    2024 
     
    2226    opened = false; 
    2327    asset_id = ''; 
     28    detailRowClass = ''; 
     29    origRowClass = ''; 
    2430} 
    2531 
     
    2733    if (opened) { 
    2834        hide('asset-' + asset_id + '-detail'); 
     35        detailRowClass.className = origRowClass; 
    2936        notOpened(asset_id); 
    3037        toggleScrollBar('right'); 
     
    3542    if (asset_id == id) { 
    3643        hide('asset-' + asset_id + '-detail'); 
     44        detailRowClass.className = origRowClass; 
    3745        notOpened(asset_id); 
    3846        if (isModal) { 
     
    5361    checkOpened(); 
    5462    hasOpened(id); 
     63    detailRowClass.className = 'selected'; 
    5564    var detail = getByID("asset-" + id + "-detail"); 
    5665    if (isModal) { 
  • branches/wheeljack/tmpl/cms/list_asset.tmpl

    r912 r919  
    192192 
    193193<TMPL_LOOP NAME=OBJECT_LOOP> 
    194 <tr class="<TMPL_IF __ODD__>odd<TMPL_ELSE>even</TMPL_IF>"> 
     194<tr id="asset-<TMPL_VAR NAME=ID>" class="<TMPL_IF __ODD__>odd<TMPL_ELSE>even</TMPL_IF>"> 
    195195<td class="cb"><input type="hidden" id="asset-<TMPL_VAR NAME=ID>-json" value="<TMPL_VAR NAME=METADATA_JSON ESCAPE=HTML>" /> 
    196196<input type="checkbox" name="id" value="<TMPL_VAR NAME=ID>" class="select" /></td>