"Fossies" - the Fresh Open Source Software Archive  

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

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

post.js  (mybb_1822):post.js  (mybb_1823)
skipping to change at line 108 skipping to change at line 108
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";
var form = $('input[name=rem]').parents(' form'); var form = $('input[name^=\'rem\']').pare nts('form');
if(use_xmlhttprequest != 1) if(use_xmlhttprequest != 1)
{ {
form.append('<input type="submit" id="rem_submit" class="hidden" />'); form.append('<input type="submit" id="rem_submit" class="hidden" />');
$('#rem_submit').trigger('click') ; $('#rem_submit').trigger('click') ;
return false; return false;
} }
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
skipping to change at line 149 skipping to change at line 149
if(instan ce.sourceMode()) if(instan ce.sourceMode())
{ {
i nstance.setSourceEditorValue(instance.getSourceEditorValue(false).split('[attach ment=' + aid + ']').join('')); i nstance.setSourceEditorValue(instance.getSourceEditorValue(false).split('[attach ment=' + aid + ']').join(''));
} else { } else {
i nstance.setWysiwygEditorValue(instance.getWysiwygEditorValue(false).split('[atta chment=' + aid + ']').join('')); i nstance.setWysiwygEditorValue(instance.getWysiwygEditorValue(false).split('[atta chment=' + aid + ']').join(''));
} }
$(this).r emove(); $(this).r emove();
}); });
} }
document.input.attachment
aid.value = '';
document.input.attachment
act.value = '';
} }
}); });
} }
} }
}); });
return false; return false;
}, },
attachmentAction: function(aid,action) attachmentAction: function(aid,action)
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

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