Vergleich admin/jscripts/imodal.js - 1.6.0 - 1.6.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 96Zeile 96
		this.loader.id = 'ModalLoadingIndicator';

// Insert into the body

		this.loader.id = 'ModalLoadingIndicator';

// Insert into the body

		owner = document.getElementsByTagName("body").item(0);
owner.appendChild(this.loader);
//document.write(MyBB.HTMLchars(owner.innerHTML));

		Element.insert(document.body, { 'after': this.loader });



	},

showOverlayLoader: function()

	},

showOverlayLoader: function()

Zeile 113Zeile 111
		this.overlayLoader.style.top = 0;
this.overlayLoader.style.zIndex = 3000;


		this.overlayLoader.style.top = 0;
this.overlayLoader.style.zIndex = 3000;


		// Set opacity (and be nice to IE)
this.overlayLoader.setStyle("opacity: " + this.options.overlay / 100);

		Element.insert(document.body, { 'after': this.overlayLoader });



// Insert into the body


// Insert into the body

		owner = document.getElementsByTagName('body').item(0);
owner.appendChild(this.overlayLoader);












		// Opacity
if(MyBB.browser != "ie")
{
$("ModalOverlay").style.opacity = this.options.overlay / 100;
}
else
{
// IE 8 and IE 9 does this nicely - IE 7 ignores
$("ModalOverlay").setStyle(
{
opacity: this.options.overlay / 100
});
}


this.showLoader();


this.showLoader();

	},

	},

	
hideOverlayLoader: function()
{

	
hideOverlayLoader: function()
{

Zeile 130Zeile 138
	},

hideLoader: function()

	},

hideLoader: function()

	{

	{

		$('ModalLoadingIndicator').remove();
},


		$('ModalLoadingIndicator').remove();
},


Zeile 143Zeile 151
		{
new Ajax.Request(this.options.url, {
method: 'get',

		{
new Ajax.Request(this.options.url, {
method: 'get',

 
				parameters: { time: new Date().getTime() },

				onComplete: function(request) { this.displayModal(request.responseText); }.bind(this)
});
}

				onComplete: function(request) { this.displayModal(request.responseText); }.bind(this)
});
}

Zeile 153Zeile 162
	},

submit: function(e)

	},

submit: function(e)

	{

	{

		Event.stop(e);

		Event.stop(e);

		

		

		this.showOverlayLoader();
var postData = $(this.options.formId).serialize();
this.postData = $(this.options.formId).serialize(true);

new Ajax.Request(this.options.url, {
method: 'post',

		this.showOverlayLoader();
var postData = $(this.options.formId).serialize();
this.postData = $(this.options.formId).serialize(true);

new Ajax.Request(this.options.url, {
method: 'post',

            postBody: postData+"&ajax=1",

            postBody: postData+"&ajax=1&time=" + new Date().getTime(),

            onComplete: this.onComplete.bind(this),
});

            onComplete: this.onComplete.bind(this),
});

	},

	},

	
onComplete: function(request)
{

	
onComplete: function(request)
{

Zeile 210Zeile 219
		{
$('ModalLoadingIndicator').remove();
}

		{
$('ModalLoadingIndicator').remove();
}

 


		// ModalContentContainer

		// ModalContentContainer

		$('ModalOverlay').remove();




		if($('ModalOverlay'))
{
$('ModalOverlay').remove();
}

	}
};

	}
};