* set the debugwin's css for ie.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
|
||||
<div id='divider'></div>
|
||||
<div class='yui-d0'>
|
||||
<iframe frameborder='0' name='hiddenwin' class='<?php $config->debug ? print("debugwin") : print('hidden')?>'></iframe>
|
||||
<iframe frameborder='0' name='hiddenwin' scrolling='no' class='<?php $config->debug ? print("debugwin") : print('hidden')?>'></iframe>
|
||||
</div>
|
||||
<div id='footer' class='yui-d0 yui-t7'>
|
||||
<div class='yui-g'>
|
||||
@@ -14,5 +14,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script laguage='Javascript'>$().ready(function(){setDebugWin('white')})</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -65,8 +65,6 @@ $(document).ready(function(){
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class='yui-d0'>
|
||||
<iframe frameborder='0' name='hiddenwin' class='<?php $config->debug ? print("debugwin") : print('hidden')?>'></iframe>
|
||||
</div>
|
||||
<div class='yui-d0'><iframe frameborder='0' scrolling='no' name='hiddenwin' class='hidden'></iframe></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -377,6 +377,22 @@ function setAbout()
|
||||
if($('a.about').size()) $("a.about").colorbox({width:900, height:330, iframe:true, transition:'elastic', speed:500, scrolling:false});
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the css of the iframe.
|
||||
*
|
||||
* @param string $color
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function setDebugWin(color)
|
||||
{
|
||||
if($.browser.msie)
|
||||
{
|
||||
var debugWin = $(".debugwin")[0].contentWindow.document;
|
||||
$("body", debugWin).append("<style>body{background:" + color + "}</style>");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* add one option of a select to another select.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user