[ Index ] |
PHP Cross Reference of MyBB 1.8.38 |
[Summary view] [Print] [Text view]
1 var Report = { 2 init: function() 3 { 4 $(function(){ 5 }); 6 }, 7 8 reportPost: function(pid) 9 { 10 MyBB.popupWindow("/report.php?modal=1&type=post&pid="+pid); 11 }, 12 13 reportUser: function(pid) 14 { 15 MyBB.popupWindow("/report.php?modal=1&type=profile&pid="+pid); 16 }, 17 18 reportReputation: function(pid) 19 { 20 MyBB.popupWindow("/report.php?modal=1&type=reputation&pid="+pid); 21 }, 22 23 submitReport: function(pid) 24 { 25 // Get form, serialize it and send it 26 var datastring = $(".reportData_"+pid).serialize(); 27 $.ajax({ 28 type: "POST", 29 url: "report.php?modal=1", 30 data: datastring, 31 dataType: "html", 32 success: function(data) { 33 // Replace modal HTML 34 $('.modal_'+pid).fadeOut('slow', function() { 35 $('.modal_'+pid).html(data); 36 $('.modal_'+pid).fadeIn('slow'); 37 $('.modal').fadeIn('slow'); 38 }); 39 }, 40 error: function(){ 41 alert(lang.unknown_error); 42 } 43 }); 44 45 return false; 46 } 47 }; 48 49 Report.init();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup | Cross-referenced by PHPXref |