Changeset 40863

Show
Ignore:
Timestamp:
04/16/08 05:00:13 (3 months ago)
Author:
ketsugi
Message:

[CHG] Acronym rows now change color when hovered over.
[CHG] Acronyms are now easier to select.
[CHG] WP 2.5 tooltips added for "Select All" checkbox and "Edit" links

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • acronyms/trunk/acronyms.php

    r40858 r40863  
    338338      function manage_acronyms_js () 
    339339      { 
    340             echo '<script type="text/javascript" src="' . get_bloginfo('wpurl') . '/wp-admin/js/forms.js?ver=20080317"></script>'; 
     340?> 
     341            <script type="text/javascript" src="<?php bloginfo('wpurl') ?>/wp-admin/js/forms.js?ver=20080317"></script> 
     342            <script type="text/javascript"> 
     343                                    jQuery(document).ready( function() { 
     344                                    jQuery('.acronym-tooltip').tTips(); 
     345                                    }); 
     346            </script> 
     347            <style type='text/css' media='all'> 
     348                               tbody.list-acronym tr:hover { 
     349                                          background-color: #eeeeee; 
     350                                    } 
     351            </style> 
     352<?php 
    341353      } 
    342354 
     
    358370      <thead> 
    359371      <tr> 
    360     <th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th> 
     372    <th scope="col" class="check-column"><span class="acronym-tooltip" title="<?php _e( 'Select all acronyms' , $domain ) ?>"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></span></th> 
    361373    <th scope="col"><?php _e('Acronym') ?></th> 
    362374    <th scope="col"><?php _e('Full') ?></th> 
    363375      </tr> 
    364376      </thead> 
    365       <tbody id="the-list" class="list:acronym"> 
     377      <tbody id="the-list" class="list-acronym"> 
    366378<?php 
    367379            $index_start = $n * ( $p - 1 ); 
     
    375387      ?> 
    376388                  <tr<?php if (0 == $i++ % 2) echo ' class="alternate"' ?>> 
    377                     <th scope="row" class="check-column"> <input type="checkbox" name="delete_acronyms[]" value="<?php echo $acronym ?>" /></th> 
    378                         <td><strong> 
    379                           <a class="row-title" href="edit.php?page=<?php echo Acronyms::get_parent_url() ?>&amp;action=edit&amp;acronym=<?php echo urlencode( $acronym ) ?>&amp;fulltext=<?php echo urlencode( $fulltext ) ?>" title="Edit &quot;<?php echo $acronym ?>&quot;"><?php echo $acronym ?></a></strong></td> 
    380                         <td><?php echo $fulltext ?></td> 
     389                    <th scope="row" class="check-column"> <input type="checkbox" name="delete_acronyms[]" value="<?php echo $acronym ?>" id="select-<?php echo $acronym ?>"/></th> 
     390                        <td><label for="select-<?php echo $acronym ?>" style="display:block"><strong> 
     391                          <span class="acronym-tooltip" title="<?php printf( __( "Edit &quot;%s&quot;" , $domain ), $acronym ) ?>"><a class="row-title" href="edit.php?page=<?php echo Acronyms::get_parent_url() ?>&amp;action=edit&amp;acronym=<?php echo urlencode( $acronym ) ?>&amp;fulltext=<?php echo urlencode( $fulltext ) ?>"><?php echo $acronym ?></a></span></strong></label></td> 
     392                        <td><label for="select-<?php echo $acronym ?>" style="display:block"><?php echo $fulltext ?></label></td> 
    381393                  </tr> 
    382394      <?php