From 094ded45149d1b522ec4ef4bda81d88f27a1408f Mon Sep 17 00:00:00 2001 From: joyqi Date: Thu, 7 Nov 2013 16:20:27 +0800 Subject: [PATCH] fixed #60 --- admin/js/markdown.js | 2 +- admin/manage-comments.php | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/admin/js/markdown.js b/admin/js/markdown.js index 4b08c0b8..eb12c996 100644 --- a/admin/js/markdown.js +++ b/admin/js/markdown.js @@ -4871,7 +4871,7 @@ else linkname = linkname.replace('_', '\\_'); } - chunk.selection = linkname.replace('_', '\\_') || that.getString("linkdescription"); + chunk.selection = linkname || that.getString("linkdescription"); } } } diff --git a/admin/manage-comments.php b/admin/manage-comments.php index b2e6fe1a..ccf05aaa 100644 --- a/admin/manage-comments.php +++ b/admin/manage-comments.php @@ -143,19 +143,19 @@ $isAllComments = ('on' == $request->get('__typecho_all_comments') || 'on' == Typ status): ?> - + status): ?> - + status): ?> - + @@ -229,6 +229,12 @@ $(document).ready(function () { return false; }); + $('.operate-approved, .operate-waiting, .operate-spam').click(function () { + rememberScroll(); + window.location.href = $(this).attr('href'); + return false; + }); + $('.operate-reply').click(function () { var td = $(this).parents('td'), t = $(this);