Project

General

Profile

« Previous | Next » 

Revision 1051

Added by Matthias over 15 years ago

Fixed wrong path to unitpngfix.js and added missing script

View differences:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14 14
09-July-2009 Matthias
15
#	Fixed wrong path to unitpngfix.js and added missing script
15 16
#	Fixed invalid output of page_sections Page in Backend (Thanks to Luisehahne)
16 17
08-July-2009 Matthias Gallas
17 18
+	Added PageID and SectionID to all backend themes (Thanks to Luiseshahne)
trunk/wb/include/jquery/plugins/unitpngfix.js
1
var clear="images/clear.gif" //path to clear.gif
2

  
3
pngfix=function(){var els=document.getElementsByTagName('*');var ip=/\.png/i;var i=els.length;while(i-- >0){var el=els[i];var es=el.style;if(el.src&&el.src.match(ip)&&!es.filter){es.height=el.height;es.width=el.width;es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+el.src+"',sizingMethod='crop')";el.src=clear;}else{var elb=el.currentStyle.backgroundImage;if(elb.match(ip)){var path=elb.split('"');var rep=(el.currentStyle.backgroundRepeat=='no-repeat')?'crop':'scale';es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+path[1]+"',sizingMethod='"+rep+"')";es.height=el.clientHeight+'px';es.backgroundImage='none';var elkids=el.getElementsByTagName('*');if (elkids){var j=elkids.length;if(el.currentStyle.position!="absolute")es.position='static';while (j-- >0)if(!elkids[j].style.position)elkids[j].style.position="relative";}}}}}
4
window.attachEvent('onload',pngfix);
trunk/wb/templates/classic_theme/templates/footer.htt
18 18
<script src="{WB_URL}/include/jquery/jquery-min.js" type="text/javascript"></script>
19 19
<script src="{WB_URL}/include/jquery/jquery-ui-min.js" type="text/javascript"></script>
20 20
<script src="{WB_URL}/include/jquery/jquery-insert.js" type="text/javascript"></script>
21
<!--[if lt IE 7]><script type="text/javascript" src="{WB_URL}/include/unitpngfix/unitpngfix.js"></script><![endif]-->
21
<!--[if lt IE 7]><script type="text/javascript" src="{WB_URL}/include/jquery/plugins/unitpngfix.js"></script><![endif]-->
22 22
<script language="javascript" type="text/javascript">
23 23

  
24 24

  
trunk/wb/templates/wb_theme/templates/footer.htt
18 18
<script src="{WB_URL}/include/jquery/jquery-min.js" type="text/javascript"></script>
19 19
<script src="{WB_URL}/include/jquery/jquery-ui-min.js" type="text/javascript"></script>
20 20
<script src="{WB_URL}/include/jquery/jquery-insert.js" type="text/javascript"></script>
21
<!--[if lt IE 7]><script type="text/javascript" src="{WB_URL}/include/unitpngfix/unitpngfix.js"></script><![endif]-->
21
<!--[if lt IE 7]><script type="text/javascript" src="{WB_URL}/include/jquery/plugins/unitpngfix.js"></script><![endif]-->
22 22
<script language="javascript" type="text/javascript">
23 23

  
24 24

  
trunk/wb/templates/argos_theme/templates/footer.htt
19 19
<script src="{WB_URL}/include/jquery/jquery-min.js" type="text/javascript"></script>
20 20
<script src="{WB_URL}/include/jquery/jquery-ui-min.js" type="text/javascript"></script>
21 21
<script src="{WB_URL}/include/jquery/jquery-insert.js" type="text/javascript"></script>
22
<!--[if lt IE 7]><script type="text/javascript" src="{WB_URL}/include/unitpngfix/unitpngfix.js"></script><![endif]-->
22
<!--[if lt IE 7]><script type="text/javascript" src="{WB_URL}/include/jquery/plugins/unitpngfix.js"></script><![endif]-->
23 23
<script language="javascript" type="text/javascript">
24 24

  
25 25

  

Also available in: Unified diff