Changeset 2762

Show
Ignore:
Timestamp:
08/08/05 01:13:22 (3 years ago)
Author:
matt
Message:

Draw more attention to the messages, which now blend in a little with the header. TODO: Put all messages in an array, abstract out HTML

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-header.php

    r2761 r2762  
    2626    extended_valid_elements : "a[id|href|title|onclick],img[class|src|alt|title|width|height|align]", 
    2727    plugins : "emotions" 
    28     do_action('mce_options'); 
     28    <?php do_action('mce_options'); ?> 
    2929}); 
    3030</script> 
     
    3333<script type="text/javascript"> 
    3434//<![CDATA[ 
     35 
     36function addLoadEvent(func) { 
     37  var oldonload = window.onload; 
     38  if (typeof window.onload != 'function') { 
     39    window.onload = func; 
     40  } else { 
     41    window.onload = function() { 
     42      oldonload(); 
     43      func(); 
     44    } 
     45  } 
     46} 
    3547 
    3648<?php if ( isset($xfn) ) : ?> 
     
    8193} 
    8294 
    83 window.onload = blurry; 
     95addLoadEvent(blurry); 
     96 
    8497<?php endif; ?> 
    8598 
     
    87100//]]> 
    88101</script> 
    89  
     102<script type="text/javascript" src="fat.js"></script> 
    90103<?php if ( isset( $editing ) ) : ?> 
    91104<script type="text/javascript" src="dbx.js"></script> 
  • trunk/wp-admin/categories.php

    r2714 r2762  
    112112 
    113113<?php if (isset($_GET['message'])) : ?> 
    114 <div class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div> 
     114<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div> 
    115115<?php endif; ?> 
    116116 
  • trunk/wp-admin/dbx-key.js

    r2639 r2762  
    22 
    33//initialisation function 
    4 window.onload = function() 
     4addLoadEvent( function() 
    55{ 
    66    //initialise the docking boxes manager  
     
    4242        '%mytitle%  [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts 
    4343        ); 
    44 }
     44})
  • trunk/wp-admin/edit-form-advanced.php

    r2756 r2762  
    55?> 
    66<?php if (isset($_GET['message'])) : ?> 
    7 <div class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div> 
     7<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div> 
    88<?php endif; ?> 
    99 
     
    5353    document.post.title.focus(); 
    5454} 
    55 window.onload = focusit
     55addLoadEvent(focusit)
    5656</script> 
    5757<?php endif; ?> 
  • trunk/wp-admin/edit-form-comment.php

    r2749 r2762  
    1212 
    1313<script type="text/javascript"> 
    14 function focusit() { 
    15     // focus on first input field 
     14function focusit() { // focus on first input field 
    1615    document.post.name.focus(); 
    1716} 
    18 window.onload = focusit
     17addLoadEvent(focusit)
    1918</script> 
    2019<fieldset id="namediv"> 
  • trunk/wp-admin/edit-form.php

    r2724 r2762  
    1212<script type="text/javascript"> 
    1313<!-- 
    14 function focusit() { 
    15     // focus on first input field 
     14function focusit() { // focus on first input field 
    1615    document.getElementById('title').focus(); 
    1716} 
    18 window.onload = focusit
     17addLoadEvent(focusit)
    1918//--> 
    2019</script> 
  • trunk/wp-admin/edit-page-form.php

    r2749 r2762  
    3333<script type="text/javascript"> 
    3434<!-- 
    35 function focusit() { 
    36     // focus on first input field 
     35function focusit() { // focus on first input field 
    3736    document.post.title.focus(); 
    3837} 
    39 window.onload = focusit
     38addLoadEvent(focusit)
    4039//--> 
    4140</script> 
  • trunk/wp-admin/link-add.php

    r2377 r2762  
    6666 
    6767<?php if ($_GET['added']) : ?> 
    68 <div class="updated"><p><?php _e('Link added.'); ?></p></div> 
     68<div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div> 
    6969<?php endif; ?> 
    7070<div class="wrap"> 
  • trunk/wp-admin/options-head.php

    r1818 r2762  
    2121 
    2222<?php if (isset($_GET['updated'])) : ?> 
    23 <div class="updated"><p><strong><?php _e('Options saved.') ?></strong></p></div> 
     23<div id="message" class="updated fade"><p><strong><?php _e('Options saved.') ?></strong></p></div> 
    2424<?php endif; ?> 
  • trunk/wp-admin/options-permalink.php

    r2760 r2762  
    9090 
    9191<?php if (isset($_POST['submit'])) : ?> 
    92 <div class="updated"><p><?php 
     92<div id="message" class="updated fade"><p><?php 
    9393if ($writable) 
    9494    _e('Permalink structure updated.'); 
  • trunk/wp-admin/page-new.php

    r2730 r2762  
    88 
    99<?php if ( isset($_GET['saved']) ) : ?> 
    10 <div class="updated"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?> &raquo;</a></strong></p></div> 
     10<div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?> &raquo;</a></strong></p></div> 
    1111<?php endif; ?> 
    1212 
  • trunk/wp-admin/plugin-editor.php

    r2714 r2762  
    7171    ?> 
    7272<?php if (isset($_GET['a'])) : ?> 
    73  <div class="updated"><p><?php _e('File edited successfully.') ?></p></div> 
     73 <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div> 
    7474<?php endif; ?> 
    7575 <div class="wrap">  
  • trunk/wp-admin/plugins.php

    r2759 r2762  
    5151 
    5252<?php if (isset($_GET['activate'])) : ?> 
    53 <div class="updated"><p><?php _e('Plugin <strong>activated</strong>.') ?></p> 
     53<div id="message" class="updated fade"><p><?php _e('Plugin <strong>activated</strong>.') ?></p> 
    5454</div> 
    5555<?php endif; ?> 
    5656<?php if (isset($_GET['deactivate'])) : ?> 
    57 <div class="updated"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p> 
     57<div id="message" class="updated fade"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p> 
    5858</div> 
    5959<?php endif; ?> 
  • trunk/wp-admin/post.php

    r2756 r2762  
    316316?> 
    317317<?php if ( isset($_GET['posted']) ) : ?> 
    318 <div class="updated"><p><?php printf(__('Post saved. <a href="%s">View site &raquo;</a>'), get_bloginfo('home')); ?></p></div> 
     318<div id="message" class="updated fade"><p><?php printf(__('Post saved. <a href="%s">View site &raquo;</a>'), get_bloginfo('home')); ?></p></div> 
    319319<?php endif; ?> 
    320320<?php 
  • trunk/wp-admin/profile.php

    r2720 r2762  
    141141 
    142142if (isset($updated)) { ?> 
    143 <div class="updated"> 
     143<div id="message" class="updated fade"> 
    144144<p><strong><?php _e('Profile updated.') ?></strong></p> 
    145145</div> 
  • trunk/wp-admin/templates.php

    r2720 r2762  
    7777    ?> 
    7878<?php if (isset($_GET['a'])) : ?> 
    79  <div class="updated"><p><?php _e('File edited successfully.') ?></p></div> 
     79 <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div> 
    8080<?php endif; ?> 
    8181 <div class="wrap">  
  • trunk/wp-admin/theme-editor.php

    r2714 r2762  
    8383    ?> 
    8484<?php if (isset($_GET['a'])) : ?> 
    85  <div class="updated"><p><?php _e('File edited successfully.') ?></p></div> 
     85 <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div> 
    8686<?php endif; ?> 
    8787 <div class="wrap"> 
  • trunk/wp-admin/themes.php

    r2757 r2762  
    2525?> 
    2626<?php if ( ! validate_current_theme() ) : ?> 
    27 <div class="updated"><p><?php _e('The active theme is broken.  Reverting to the default theme.'); ?></p></div> 
     27<div id="message1" class="updated fade"><p><?php _e('The active theme is broken.  Reverting to the default theme.'); ?></p></div> 
    2828<?php elseif ( isset($activated) ) : ?> 
    29 <div class="updated"><p><?php _e('New theme activated'); ?></p></div> 
     29<div id="message2" class="updated fade"><p><?php _e('New theme activated'); ?></p></div> 
    3030<?php endif; ?> 
    3131 
  • trunk/wp-admin/user-edit.php

    r2704 r2762  
    111111 
    112112<?php if ( isset($_GET['updated']) ) : ?> 
    113 <div class="updated"> 
     113<div id="message" class="updated fade"> 
    114114    <p><strong><?php _e('User updated.') ?></strong></p> 
    115115</div> 
  • trunk/wp-admin/users.php

    r2704 r2762  
    191191        case 'del': 
    192192        ?> 
    193             <div class="updated"><p><?php _e('User deleted.'); ?></p></div> 
     193            <div id="message" class="updated fade"><p><?php _e('User deleted.'); ?></p></div> 
    194194        <?php 
    195195            break; 
    196196        case 'add': 
    197197        ?> 
    198             <div class="updated"><p><?php _e('New user created.'); ?></p></div> 
     198            <div id="message" class="updated fade"><p><?php _e('New user created.'); ?></p></div> 
    199199        <?php 
    200200            break; 
    201201        case 'promote': 
    202202        ?> 
    203             <div class="updated"><p><?php _e('Changed roles.'); ?></p></div> 
     203            <div id="message" class="updated fade"><p><?php _e('Changed roles.'); ?></p></div> 
    204204        <?php 
    205205            break; 
  • trunk/wp-admin/wp-admin.css

    r2759 r2762  
    372372    margin-right: 1em; 
    373373    margin-bottom: 1.5em; 
     374    width: 300px; 
    374375} 
    375376