"Fossies" - the Fresh Open Source Software Archive  

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

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

thread.js  (mybb_1819):thread.js  (mybb_1820)
var Thread = { var Thread = {
init: function() init: function()
{ {
$(document).ready(function(){ $(function(){
Thread.quickEdit(); Thread.quickEdit();
Thread.initQuickReply(); Thread.initQuickReply();
Thread.initMultiQuote(); Thread.initMultiQuote();
// Set spinner image // Set spinner image
$('#quickreply_spinner img').attr('src', spinner_image); $('#quickreply_spinner img').attr('src', spinner_image);
}); });
}, },
initMultiQuote: function() initMultiQuote: function()
skipping to change at line 456 skipping to change at line 456
}, },
showDeletedPost: function(pid) showDeletedPost: function(pid)
{ {
$('#deleted_post_'+pid).slideToggle("slow"); $('#deleted_post_'+pid).slideToggle("slow");
$('#post_'+pid).slideToggle("slow"); $('#post_'+pid).slideToggle("slow");
}, },
deletePost: function(pid) deletePost: function(pid)
{ {
$.prompt(quickdelete_confirm, { MyBB.prompt(quickdelete_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)
{ {
$.ajax( $.ajax(
{ {
url: 'editpost.php?ajax=1&action= deletepost&delete=1&my_post_key='+my_post_key+'&pid='+pid, url: 'editpost.php?ajax=1&action= deletepost&delete=1&my_post_key='+my_post_key+'&pid='+pid,
skipping to change at line 534 skipping to change at line 534
}); });
} }
} }
}); });
return false; return false;
}, },
restorePost: function(pid) restorePost: function(pid)
{ {
$.prompt(quickrestore_confirm, { MyBB.prompt(quickrestore_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)
{ {
$.ajax( $.ajax(
{ {
url: 'editpost.php?ajax=1&action= restorepost&restore=1&my_post_key='+my_post_key+'&pid='+pid, url: 'editpost.php?ajax=1&action= restorepost&restore=1&my_post_key='+my_post_key+'&pid='+pid,
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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