WordPress.org

Plugin Directory

Changeset 536875


Ignore:
Timestamp:
04/26/12 17:22:02 (2 years ago)
Author:
lessbloat
Message:

Fixed Firefox stats iframe preview bug where iframe was showing up as height=100px.

Location:
akismet/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/admin.php

    r536210 r536875  
    2424    else 
    2525        $hook = 'dashboard_page_akismet-stats-display'; 
    26     add_action('admin_head-'.$hook, 'akismet_stats_script'); 
    2726    add_meta_box('akismet-status', __('Comment History'), 'akismet_comment_status_meta_box', 'comment', 'normal'); 
    2827} 
     
    241240} 
    242241 
    243 function akismet_stats_script() { 
    244     ?> 
    245 <script type="text/javascript"> 
    246 function resizeIframe() { 
    247    
    248     document.getElementById('akismet-stats-frame').style.height = "2500px"; 
    249      
    250 }; 
    251 function resizeIframeInit() { 
    252     document.getElementById('akismet-stats-frame').onload = resizeIframe; 
    253     window.onresize = resizeIframe; 
    254 } 
    255 addLoadEvent(resizeIframeInit); 
    256 </script><?php 
    257 } 
    258  
    259  
    260242function akismet_stats_display() { 
    261243    global $akismet_api_host, $akismet_api_port, $wpcom_api_key; 
     
    270252    ?> 
    271253    <div class="wrap"> 
    272     <iframe src="<?php echo $url; ?>" width="100%" height="100%" frameborder="0" id="akismet-stats-frame"></iframe> 
     254    <iframe src="<?php echo $url; ?>" width="100%" height="2500px" frameborder="0" id="akismet-stats-frame"></iframe> 
    273255    </div> 
    274256    <?php 
  • akismet/trunk/readme.txt

    r536522 r536875  
    3131 
    3232== Changelog == 
     33 
     34= 2.5.7 = 
     35* FireFox Stats iframe preview bug 
    3336 
    3437= 2.5.6 = 
Note: See TracChangeset for help on using the changeset viewer.