Zeile 55 | Zeile 55 |
---|
multiQuotedLoaded: function(request) {
|
multiQuotedLoaded: function(request) {
|
var json = $.parseJSON(request.responseText);
| var json = JSON.parse(request.responseText);
|
if(typeof response == 'object') { if(json.hasOwnProperty("errors"))
| if(typeof response == 'object') { if(json.hasOwnProperty("errors"))
|
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 110 | Zeile 110 |
---|
if(use_xmlhttprequest != 1) { form.append('<input type="submit" id="rem_submit" class="hidden" />');
|
if(use_xmlhttprequest != 1) { form.append('<input type="submit" id="rem_submit" class="hidden" />');
|
$('#rem_submit').click();
| $('#rem_submit').trigger('click');
|
return false; }
| return false; }
|
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(); }); }
|