Revision: 1446
Author: magike.net
Date: Thu Jun 10 20:32:21 2010
Log: 修正回复效果在不同浏览器里显示的bug
http://code.google.com/p/typecho/source/detail?r=1446
Modified:
/trunk/admin/css/typecho.source.css
/trunk/admin/manage-comments.php
=======================================
--- /trunk/admin/css/typecho.source.css Wed Jun 9 22:08:08 2010
+++ /trunk/admin/css/typecho.source.css Thu Jun 10 20:32:21 2010
@@ -192,6 +192,7 @@
textarea {
overflow: auto;
line-height: 150%;
+ resize: none;
}
em {
@@ -1959,7 +1960,6 @@
margin: 0;
*margin: -1px 0 -1px 0;
display: block;
- resize: none;
}
.typecho-post-area button#btn-submit {
=======================================
--- /trunk/admin/manage-comments.php Wed Jun 9 22:08:08 2010
+++ /trunk/admin/manage-comments.php Thu Jun 10 20:32:21 2010
@@ -328,10 +328,13 @@
form.inject(this.getParent('li').getElement('.line'), 'after');
- var ta = form.getElement('textarea');
- ta.set('value', '<a href="#' +
this.getParent('li').get('id') + '">@'
- +
this.getParent('li').getElement('.comment-author a').get('html')
+ "</a>\n");
+ var ta = form.getElement('textarea'), rg =
ta.getSelectedRange(),
+ instStr = '<a href="#' +
this.getParent('li').get('id') + '">@'
+ +
this.getParent('li').getElement('.comment-author').get('text') + "</a>\n";
+
+ ta.set('value', instStr);
ta.focus();
+ ta.selectRange(instStr.length + 1, instStr.length
+ 1);
form.getElement('#reply-' +
coid).addEvent('click', (function () {
if ('' ==
this.getParent('li').getElement('.reply-form
textarea[name=text]').get('value')) {
_______________________________________________
announce mailing list
[email protected]
http://lists.typecho.org/mailman/listinfo/announce