diff --git a/admin/manage-users.php b/admin/manage-users.php index 463ffbd7..d3201bf2 100644 --- a/admin/manage-users.php +++ b/admin/manage-users.php @@ -32,23 +32,21 @@ include 'menu.php';
- - - - + + - - + + + + - - @@ -56,11 +54,11 @@ include 'menu.php'; next()): ?> - - - + + - diff --git a/admin/write-js.php b/admin/write-js.php index 6a579b81..4ebd8347 100644 --- a/admin/write-js.php +++ b/admin/write-js.php @@ -77,6 +77,22 @@ $(document).ready(function() { t.width($('.token-input-list').outerWidth() - offset); }); + var slug = $('#slug'), sw = slug.width(); + + if (slug.val().length > 0) { + slug.css('width', 'auto').attr('size', slug.val().length); + } + + slug.bind('input propertychange', function () { + var t = $(this), l = t.val().length; + + if (l > 0) { + t.css('width', 'auto').attr('size', l); + } else { + t.css('width', sw).removeAttr('size'); + } + }).width(); + // 高级选项控制 $('#advance-panel-btn').click(function() { $('#advance-panel').toggle(); diff --git a/admin/write-post.php b/admin/write-post.php index 90a2f3b2..e0a746ee 100644 --- a/admin/write-post.php +++ b/admin/write-post.php @@ -17,8 +17,15 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);

- -

http://xxxxxxxxxxxx.com/2011/08/29//

+ routingTable['post']['url'], $options->index); + list ($scheme, $permalink) = explode(':', $permalink, 2); + $permalink = ltrim($permalink, '/'); + ?> + slug) . '" class="mono" />'; + ?> +

+

bold

name(); ?>screenName(); ?> - view + postsNum(); ?>name(); ?> + view screenName(); ?> mail): ?>mail(); ?> group) { case 'administrator': @@ -81,7 +79,6 @@ include 'menu.php'; default: break; } ?>postsNum(); ?>