"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/jscripts/post.js" between
mybb_1819.zip and mybb_1820.zip

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

post.js  (mybb_1819):post.js  (mybb_1820)
var Post = { var Post = {
init: function() init: function()
{ {
$(document).ready(function() $(function()
{ {
Post.initAttachments(); Post.initAttachments();
}); });
}, },
loadMultiQuoted: function() loadMultiQuoted: function()
{ {
if(use_xmlhttprequest == 1) if(use_xmlhttprequest == 1)
{ {
tid = document.input.tid.value; tid = document.input.tid.value;
skipping to change at line 97 skipping to change at line 97
}, },
clearMultiQuoted: function() clearMultiQuoted: function()
{ {
$('#multiquote_unloaded').hide(); $('#multiquote_unloaded').hide();
Cookie.unset('multiquote'); Cookie.unset('multiquote');
}, },
removeAttachment: function(aid) removeAttachment: function(aid)
{ {
$.prompt(removeattach_confirm, { MyBB.prompt(removeattach_confirm, {
buttons:[ buttons:[
{title: yes_confirm, value: true}, {title: yes_confirm, value: true},
{title: no_confirm, value: false} {title: no_confirm, value: false}
], ],
submit: function(e,v,m,f){ submit: function(e,v,m,f){
if(v == true) if(v == true)
{ {
document.input.attachmentaid.value = aid; document.input.attachmentaid.value = aid;
document.input.attachmentact.value = "rem ove"; document.input.attachmentact.value = "rem ove";
$("input[name=rem]").parents('form').appe var form = $('input[name=rem]').parents('
nd('<input type="submit" id="rem_submit" class="hidden" />'); form');
$('#rem_submit').click();
if(use_xmlhttprequest != 1)
{
form.append('<input type="submit"
id="rem_submit" class="hidden" />');
$('#rem_submit').click();
return false;
}
$.ajax({
type: 'POST',
url: form.attr('action') + '&ajax
=1',
data: form.serialize(),
success: function(data) {
if(data.hasOwnProperty("e
rrors"))
{
$.each(data.error
s, function(i, message)
{
$.jGrowl(
lang.post_fetch_error + ' ' + message, {theme:'jgrowl_error'});
});
return false;
}
else if (data.success)
{
$('#attachment_'+
aid).hide(500, function()
{
$(this).r
emove();
});
}
}
});
} }
} }
}); });
return false; return false;
}, },
attachmentAction: function(aid,action) attachmentAction: function(aid,action)
{ {
document.input.attachmentaid.value = aid; document.input.attachmentaid.value = aid;
 End of changes. 3 change blocks. 
5 lines changed or deleted 41 lines changed or added

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