Ignore:
Timestamp:
14.07.2010 20:59:04 (23 months ago)
Author:
zmsdev
Message:

Applied fix for image-preview (requested by uni-be).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/dtml/ZMSLinkElement/f_browse_objs.dtml

    r970 r1110  
    2020  function directEditExpandIt( div_id, poser_id, autoClose) 
    2121  { 
    22     AutoClose = autoClose; 
     22    directEditAutoClose = autoClose; 
    2323    var coords = {x: 0, y: 0}; 
    2424    var el = document.images[ poser_id]; 
     
    3030      el = el.offsetParent; 
    3131    } 
    32     var div = $(div_id); 
    33     div.css( { left: coords['x'] + "px", top: coords['y'] + "px", position: "absolute"}); 
    34     div.show( "fast"); 
     32    var el = document.getElementById( div_id); 
     33    el.style.left = coords['x'] + "px"; 
     34    el.style.top = coords['y'] + "px"; 
     35    el.style.position = "absolute"; 
     36    el.style.display = "block"; 
     37    el.style.visibility = "visible"; 
    3538  } 
    3639 
     
    200203     } 
    201204   <dtml-else> 
    202      var el_type = document.getElementById('type'); 
    203      var v_type = el_type.options[ el_type.selectedIndex].value; 
    204      if (v_type.indexOf('dtml')==0) { 
     205     if ($('#type').val().indexOf('dtml')==0) { 
    205206       url = "<" + "dtml-var \"getLinkUrl('" + getInternalUrl(url) + "',REQUEST)\">"; 
    206207     } 
     
    585586       ></span 
    586587       ><img id="img_<dtml-var id>" src="<dtml-var "display_icon(REQUEST)">" border="0" title="Preview" 
    587            onmouseover="ExpandIt( 'div_img_<dtml-var id>', 'img_<dtml-var id>', false);"  
     588           onmouseover="directEditExpandIt( 'div_img_<dtml-var id>', 'img_<dtml-var id>', false);"  
    588589           onmouseout="document.getElementById( 'div_img_<dtml-var id>').style.display='none';document.getElementById( 'div_img_<dtml-var id>').style.visibility='hidden';" 
    589590           align="absmiddle" 
Note: See TracChangeset for help on using the changeset viewer.