mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 08:05:25 +02:00
plop
git-svn-id: file:///svn/phpbb/trunk@6635 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2906dbdd8a
commit
69e33a9d7d
@ -176,10 +176,13 @@ function insert_text(text, spaces, popup)
|
|||||||
/**
|
/**
|
||||||
* Add inline attachment at position
|
* Add inline attachment at position
|
||||||
*/
|
*/
|
||||||
function attach_inline()
|
function attach_inline(index, filename, element)
|
||||||
{
|
{
|
||||||
insert_text('[attachment=' + document.forms[form_name].elements['attachments'].value + ']' + document.forms[form_name].elements['attachments'].options[document.forms[form_name].elements['attachments'].selectedIndex].text + '[/attachment]');
|
insert_text('[attachment=' + index + ']' + filename + '[/attachment]');
|
||||||
document.forms[form_name].elements[text_name].focus();
|
if (element)
|
||||||
|
{
|
||||||
|
element.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -562,4 +565,3 @@ function getCaretPosition(txtarea)
|
|||||||
|
|
||||||
return (caretPos);
|
return (caretPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,10 +176,13 @@ function insert_text(text, spaces, popup)
|
|||||||
/**
|
/**
|
||||||
* Add inline attachment at position
|
* Add inline attachment at position
|
||||||
*/
|
*/
|
||||||
function attach_inline()
|
function attach_inline(index, filename, element)
|
||||||
{
|
{
|
||||||
insert_text('[attachment=' + document.forms[form_name].elements['attachments'].value + ']' + document.forms[form_name].elements['attachments'].options[document.forms[form_name].elements['attachments'].selectedIndex].text + '[/attachment]');
|
insert_text('[attachment=' + index + ']' + filename + '[/attachment]');
|
||||||
document.forms[form_name].elements[text_name].focus();
|
if (element)
|
||||||
|
{
|
||||||
|
element.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -562,4 +565,3 @@ function getCaretPosition(txtarea)
|
|||||||
|
|
||||||
return (caretPos);
|
return (caretPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -307,7 +307,7 @@ function checkForm()
|
|||||||
<!-- IF S_INLINE_ATTACHMENT_OPTIONS -->
|
<!-- IF S_INLINE_ATTACHMENT_OPTIONS -->
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1"><b class="genmed">{L_ATTACHMENTS}:</b></td>
|
<td class="row1"><b class="genmed">{L_ATTACHMENTS}:</b></td>
|
||||||
<td class="row2"><select name="attachments">{S_INLINE_ATTACHMENT_OPTIONS}</select> <input type="button" class="btnbbcode" accesskey="a" value="{L_PLACE_INLINE}" name="attachinline" onclick="attach_inline();" />
|
<td class="row2"><select name="attachments">{S_INLINE_ATTACHMENT_OPTIONS}</select> <input type="button" class="btnbbcode" accesskey="a" value="{L_PLACE_INLINE}" name="attachinline" onclick="attach_form = document.forms[form_name].elements['attachments']; attach_inline(attach_form.value, attach_form.options[attach_form.selectedIndex].text, message);" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user