"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/jscripts/thread.js" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

thread.js  (mybb_1821):thread.js  (mybb_1822)
skipping to change at line 136 skipping to change at line 136
if(json.hasOwnProperty("errors")) if(json.hasOwnProperty("errors"))
{ {
$.each(json.errors, function(i, message) $.each(json.errors, function(i, message)
{ {
$.jGrowl(lang.post_fetch_error + ' ' + me ssage, {theme:'jgrowl_error'}); $.jGrowl(lang.post_fetch_error + ' ' + me ssage, {theme:'jgrowl_error'});
}); });
return false; return false;
} }
} }
if(typeof $('textarea').sceditor != 'undefined') if(typeof MyBBEditor !== 'undefined' && MyBBEditor !== null)
{ {
$('textarea').sceditor('instance').insert(json.message); MyBBEditor.insert(json.message);
} }
else else
{ {
var id = $('#message'); var id = $('#message');
if(id.value) if(id.value)
{ {
id.value += "\n"; id.value += "\n";
} }
id.val(id.val() + json.message); id.val(id.val() + json.message);
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)