Edit link on hover for dash. Props mdawaffe. see #7552

git-svn-id: http://svn.automattic.com/wordpress/trunk@9121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-10 23:58:30 +00:00
parent ca893a2828
commit 31937a5a79
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
.edit-box {
display: none;
}
h3:hover .edit-box {
display: inline;
}
form .input-text-wrap {
border-style: solid;
border-width: 1px;

View File

@ -109,7 +109,7 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_
return;
}
list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 );
$widget_name .= ' <a href="' . clean_url( "$url#$widget_id" ) . '" class="open-box">' . __( 'Edit' ) . '</a>';
$widget_name .= ' <a href="' . clean_url( "$url#$widget_id" ) . '" class="edit-box open-box">' . __( 'Edit' ) . '</a>';
}
add_meta_box( $widget_id, $widget_name , $callback, 'dashboard', 'normal', 'core' );
}