Vergleich jscripts/report.js - 1.8.0 - 1.8.36

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 1
var Report = {
init: function()
{

var Report = {
init: function()
{

		$(document).ready(function(){

		$(function(){

		});
},

reportPost: function(pid)
{

		});
},

reportPost: function(pid)
{

		MyBB.popupWindow("/report.php?type=post&pid="+pid);

		MyBB.popupWindow("/report.php?modal=1&type=post&pid="+pid);

	},

reportUser: function(pid)
{

	},

reportUser: function(pid)
{

		MyBB.popupWindow("/report.php?type=profile&pid="+pid);

		MyBB.popupWindow("/report.php?modal=1&type=profile&pid="+pid);

	},

reportReputation: function(pid)
{

	},

reportReputation: function(pid)
{

		MyBB.popupWindow("/report.php?type=reputation&pid="+pid);

		MyBB.popupWindow("/report.php?modal=1&type=reputation&pid="+pid);

	},

submitReport: function(pid)

	},

submitReport: function(pid)

Zeile 26Zeile 26
		var datastring = $(".reportData_"+pid).serialize();
$.ajax({
type: "POST",

		var datastring = $(".reportData_"+pid).serialize();
$.ajax({
type: "POST",

			url: "report.php",

			url: "report.php?modal=1",

			data: datastring,
dataType: "html",
success: function(data) {

			data: datastring,
dataType: "html",
success: function(data) {

Zeile 34Zeile 34
				$('.modal_'+pid).fadeOut('slow', function() {
$('.modal_'+pid).html(data);
$('.modal_'+pid).fadeIn('slow');

				$('.modal_'+pid).fadeOut('slow', function() {
$('.modal_'+pid).html(data);
$('.modal_'+pid).fadeIn('slow');

 
					$('.modal').fadeIn('slow');

				});
},
error: function(){

				});
},
error: function(){