mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
git-svn-id: file:///svn/phpbb/trunk@4011 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -84,6 +84,7 @@ function bbstyle(bbnumber) {
|
||||
donotinsert = false;
|
||||
theSelection = false;
|
||||
bblast = 0;
|
||||
document.forms[form_name].elements[text_name].focus();
|
||||
|
||||
if (bbnumber == -1) { // Close all open tags & default button names
|
||||
while (bbcode[0]) {
|
||||
|
@@ -5,12 +5,58 @@
|
||||
<th height="28" align="center">{L_TOPIC_REVIEW}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><iframe width="100%" height="300" src="{U_REVIEW_TOPIC}">
|
||||
<td class="row1"><iframe width="100%" height="300" name="review_window" src="{U_REVIEW_TOPIC}">
|
||||
|
||||
<!-- ELSE -->
|
||||
|
||||
<!-- INCLUDE simple_header.html -->
|
||||
|
||||
|
||||
<script language="javascript" type="text/javascript" src="templates/subSilver/editor.js"></script>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
|
||||
var parent_form_name = 'post';
|
||||
var parent_text_name = 'message';
|
||||
|
||||
function insert_quote(text) {
|
||||
if (window.parent.document.forms[parent_form_name].elements[parent_text_name].createTextRange && window.parent.document.forms[parent_form_name].elements[parent_text_name].caretPos)
|
||||
{
|
||||
var caretPos = window.parent.document.forms[parent_form_name].elements[parent_text_name].caretPos;
|
||||
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
|
||||
window.parent.document.forms[parent_form_name].elements[parent_text_name].focus();
|
||||
} else {
|
||||
window.parent.document.forms[parent_form_name].elements[parent_text_name].value += text;
|
||||
window.parent.document.forms[parent_form_name].elements[parent_text_name].focus();
|
||||
}
|
||||
}
|
||||
|
||||
function addquote(post_id, username) {
|
||||
|
||||
var text_name = 'message_' + post_id;
|
||||
|
||||
if ((clientVer >= 4) && is_ie && is_win)
|
||||
{
|
||||
theSelection = document.selection.createRange().text; // Get text selection - does not consider the div only!
|
||||
}
|
||||
|
||||
if (!theSelection)
|
||||
{
|
||||
eval("theSelection = document.all." + text_name + ".innerText;");
|
||||
}
|
||||
|
||||
if (theSelection)
|
||||
{
|
||||
insert_quote('[quote="' + username + '"]' + theSelection + '[/quote]');
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<table class="tablebg" width="100%" cellpadding="2" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<th width="22%" height="26">{L_AUTHOR}</th>
|
||||
@@ -26,12 +72,13 @@
|
||||
<td height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="100%">{postrow.MINI_POST_IMG}<span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
|
||||
<td valign="top" align="right" nowrap="nowrap"><input type="button" class="button" name="addquote" value="{L_QUOTE}" style="width: 50px" onClick="addquote({postrow.POST_ID}, '{postrow.POSTER_NAME}');" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><span class="postbody">{postrow.MESSAGE}</span></td>
|
||||
<td colspan="2"><span class="postbody"><div id="message_{postrow.POST_ID}">{postrow.MESSAGE}</div></span></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user