к 451 git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@452 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
pherum83 2012-09-03 23:21:44 +00:00
commit 1c0d6a8a35
3 changed files with 6 additions and 4 deletions

View file

@ -56,7 +56,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
// Increase number of revision after update // Increase number of revision after update
$bb_cfg['tp_version'] = '2.5 Beta'; $bb_cfg['tp_version'] = '2.5 Beta';
$bb_cfg['tp_release_state'] = 'R451'; $bb_cfg['tp_release_state'] = 'R452';
$bb_cfg['tp_release_date'] = '04-09-2012'; $bb_cfg['tp_release_date'] = '04-09-2012';
// Database // Database

View file

@ -13,6 +13,7 @@ BBCode.prototype = {
textarea: null, textarea: null,
stext: '', stext: '',
quoter: null, quoter: null,
qouted_pid: null,
collapseAfterInsert: false, collapseAfterInsert: false,
replaceOnInsert: false, replaceOnInsert: false,
@ -23,7 +24,7 @@ BBCode.prototype = {
// Tag for quoting. // Tag for quoting.
this.addTag( this.addTag(
'_quoter', '_quoter',
function() { return '[quote="'+th.quoter+'"]' }, function() { return '[quote="'+th.quoter+'"][qpost='+th.qouted_pid+']' },
'[/quote]\n', '[/quote]\n',
null, null,
null, null,
@ -37,10 +38,11 @@ BBCode.prototype = {
}, },
// Insert poster name or poster quotes to the text. // Insert poster name or poster quotes to the text.
onclickPoster: function(name) { onclickPoster: function(name, post_id) {
var sel = this.getSelection()[0]; var sel = this.getSelection()[0];
if (sel) { if (sel) {
this.quoter = name; this.quoter = name;
this.qouted_pid = post_id;
this.quoterText = sel; this.quoterText = sel;
this.insertTag('_quoter'); this.insertTag('_quoter');
} else { } else {

View file

@ -276,7 +276,7 @@ ajax.callback.mod_action = function(data) {
<p class="avatar">{postrow.POSTER_AVATAR}</p> <p class="avatar">{postrow.POSTER_AVATAR}</p>
<!-- ELSE --> <!-- ELSE -->
<!-- IF QUICK_REPLY --> <!-- IF QUICK_REPLY -->
<p class="nick" title="{L_INS_NAME_TIP}" onmouseout="bbcode.refreshSelection(false);" onmouseover="bbcode.refreshSelection(true);" onclick="bbcode.onclickPoster('{postrow.POSTER_NAME_JS}');"> <p class="nick" title="{L_INS_NAME_TIP}" onmouseout="bbcode.refreshSelection(false);" onmouseover="bbcode.refreshSelection(true);" onclick="bbcode.onclickPoster('{postrow.POSTER_NAME_JS}', {postrow.POST_ID});">
<a href="#" onclick="return false;">{postrow.POSTER_NAME}</a> <!-- IF postrow.POSTER_AUTHOR --><sup>&reg;</sup><!-- ENDIF --> <a href="#" onclick="return false;">{postrow.POSTER_NAME}</a> <!-- IF postrow.POSTER_AUTHOR --><sup>&reg;</sup><!-- ENDIF -->
</p> </p>
<!-- ELSE --> <!-- ELSE -->