Zeile 69 | Zeile 69 |
---|
}
var id = 'message';
|
}
var id = 'message';
|
if(typeof $('textarea').sceditor != 'undefined')
| if(typeof MyBBEditor !== 'undefined' && MyBBEditor !== null)
|
{
|
{
|
$('textarea').sceditor('instance').insert(json.message);
| MyBBEditor.insert(json.message);
|
} else {
| } else {
|
Zeile 105 | Zeile 105 |
---|
document.input.attachmentaid.value = aid; document.input.attachmentact.value = "remove";
|
document.input.attachmentaid.value = aid; document.input.attachmentact.value = "remove";
|
var form = $('input[name=rem]').parents('form');
| var form = $('input[name^=\'rem\']').parents('form');
|
if(use_xmlhttprequest != 1) {
| if(use_xmlhttprequest != 1) {
|
Zeile 131 | Zeile 131 |
---|
{ $('#attachment_'+aid).hide(500, function() {
|
{ $('#attachment_'+aid).hide(500, function() {
|
| var instance = MyBBEditor; if(typeof MyBBEditor === 'undefined') { instance = $('#message').sceditor('instance'); }
if(instance.sourceMode()) { instance.setSourceEditorValue(instance.getSourceEditorValue(false).split('[attachment=' + aid + ']').join('')); } else { instance.setWysiwygEditorValue(instance.getWysiwygEditorValue(false).split('[attachment=' + aid + ']').join('')); }
|
$(this).remove(); }); }
|
$(this).remove(); }); }
|
| document.input.attachmentaid.value = ''; document.input.attachmentact.value = '';
|
} }); }
| } }); }
|