Vergleich jscripts/post.js - 1.8.21 - 1.8.24

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 69Zeile 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 105Zeile 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 131Zeile 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 = '';

						}
});
}

						}
});
}