mirror of
https://github.com/torrentpier/torrentpier
synced 2025-07-30 03:29:09 -07:00
r452
к 451 git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@452 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
51aed15b4e
commit
1c0d6a8a35
3 changed files with 6 additions and 4 deletions
|
@ -13,6 +13,7 @@ BBCode.prototype = {
|
|||
textarea: null,
|
||||
stext: '',
|
||||
quoter: null,
|
||||
qouted_pid: null,
|
||||
collapseAfterInsert: false,
|
||||
replaceOnInsert: false,
|
||||
|
||||
|
@ -23,7 +24,7 @@ BBCode.prototype = {
|
|||
// Tag for quoting.
|
||||
this.addTag(
|
||||
'_quoter',
|
||||
function() { return '[quote="'+th.quoter+'"]' },
|
||||
function() { return '[quote="'+th.quoter+'"][qpost='+th.qouted_pid+']' },
|
||||
'[/quote]\n',
|
||||
null,
|
||||
null,
|
||||
|
@ -37,10 +38,11 @@ BBCode.prototype = {
|
|||
},
|
||||
|
||||
// Insert poster name or poster quotes to the text.
|
||||
onclickPoster: function(name) {
|
||||
onclickPoster: function(name, post_id) {
|
||||
var sel = this.getSelection()[0];
|
||||
if (sel) {
|
||||
this.quoter = name;
|
||||
this.qouted_pid = post_id;
|
||||
this.quoterText = sel;
|
||||
this.insertTag('_quoter');
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue