mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 21:03:54 -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
|
@ -56,7 +56,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
|||
|
||||
// Increase number of revision after update
|
||||
$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';
|
||||
|
||||
// Database
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -276,7 +276,7 @@ ajax.callback.mod_action = function(data) {
|
|||
<p class="avatar">{postrow.POSTER_AVATAR}</p>
|
||||
<!-- ELSE -->
|
||||
<!-- 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>®</sup><!-- ENDIF -->
|
||||
</p>
|
||||
<!-- ELSE -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue