mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
plop
git-svn-id: file:///svn/phpbb/trunk@6635 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -176,10 +176,13 @@ function insert_text(text, spaces, popup)
|
||||
/**
|
||||
* 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]');
|
||||
document.forms[form_name].elements[text_name].focus();
|
||||
insert_text('[attachment=' + index + ']' + filename + '[/attachment]');
|
||||
if (element)
|
||||
{
|
||||
element.focus();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -561,5 +564,4 @@ function getCaretPosition(txtarea)
|
||||
}
|
||||
|
||||
return (caretPos);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user