From ce0d0d1dc033daa8c7b91d7265c2d1e49e80b348 Mon Sep 17 00:00:00 2001 From: joyqi Date: Tue, 15 Oct 2013 16:56:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A9slug=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E9=9A=8F=E8=BE=93=E5=85=A5=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/manage-users.php | 23 ++++++++++------------- admin/write-js.php | 16 ++++++++++++++++ admin/write-post.php | 11 +++++++++-- 3 files changed, 35 insertions(+), 15 deletions(-) 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 1cbae631..d69070a3 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 f55b801d..1ac03210 100644 --- a/admin/write-post.php +++ b/admin/write-post.php @@ -16,8 +16,15 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post); Typecho_Common::url('/action/contents-post-edit?do=deleteDraft&cid=' . $post->cid, $options->index)); ?>

- -

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(); ?>