Vergleich jscripts/general.js - 1.2.6 - 1.2.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 89Zeile 89
			input.setAttribute("type", "hidden");
input.setAttribute("value", "do_editevent");
form.appendChild(input);

			input.setAttribute("type", "hidden");
input.setAttribute("value", "do_editevent");
form.appendChild(input);

 
			
if(my_post_key)
{
var input = document.createElement("input");
input.setAttribute("name", "my_post_key");
input.setAttribute("type", "hidden");
input.setAttribute("value", my_post_key);
form.appendChild(input);
}


var input = document.createElement("input");
input.setAttribute("name", "eid");
input.setAttribute("type", "hidden");
input.setAttribute("value", eid);


var input = document.createElement("input");
input.setAttribute("name", "eid");
input.setAttribute("type", "hidden");
input.setAttribute("value", eid);

			form.appendChild(input);


			form.appendChild(input);


			var input = document.createElement("input");
input.setAttribute("name", "delete");
input.setAttribute("type", "hidden");
input.setAttribute("value", "yes");

			var input = document.createElement("input");
input.setAttribute("name", "delete");
input.setAttribute("type", "hidden");
input.setAttribute("value", "yes");

			form.appendChild(input);


			form.appendChild(input);


			document.getElementsByTagName("body")[0].appendChild(form);
form.submit();
}

			document.getElementsByTagName("body")[0].appendChild(form);
form.submit();
}

Zeile 114Zeile 123
		{
var element = formName.elements[i];
if((element.name != "allbox") && (element.type == "checkbox"))

		{
var element = formName.elements[i];
if((element.name != "allbox") && (element.type == "checkbox"))

			{

			{

				element.checked = formName.allbox.checked;
}
}
},

reputation: function(uid)

				element.checked = formName.allbox.checked;
}
}
},

reputation: function(uid)

	{

	{

		MyBB.popupWindow("reputation.php?action=add&uid="+uid, "reputation", 400, 350)
},


		MyBB.popupWindow("reputation.php?action=add&uid="+uid, "reputation", 400, 350)
},


Zeile 141Zeile 150
			input.setAttribute("type", "hidden");
input.setAttribute("value", rid);
form.appendChild(input);

			input.setAttribute("type", "hidden");
input.setAttribute("value", rid);
form.appendChild(input);

 
			
if(my_post_key)
{
var input = document.createElement("input");
input.setAttribute("name", "my_post_key");
input.setAttribute("type", "hidden");
input.setAttribute("value", my_post_key);
form.appendChild(input);
}


var input = document.createElement("input");
input.setAttribute("name", "uid");


var input = document.createElement("input");
input.setAttribute("name", "uid");

Zeile 424Zeile 442
		}
var arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
return arrayPageSize;

		}
var arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
return arrayPageSize;

	}

	},





 
	getStyle: function(e, prop)
{
var e = $(e);
if(e.currentStyle)
{
return e.currentStyle[prop];
}
else if(document.defaultView && document.defaultView.getComputedStyle)
{
prop = prop.replace(/([A-Z])/g,"-$1");
prop = prop.toLowerCase();
return document.defaultView.getComputedStyle(e, "").getPropertyValue(prop);
}
}

}

}





var expandables = {

init: function()

var expandables = {

init: function()

Zeile 439Zeile 471
			{
var expander = expanders[i];
if(!expander.id)

			{
var expander = expanders[i];
if(!expander.id)

				{

				{

					continue;
}
Event.observe(expander, "click", this.expandCollapse.bindAsEventListener(this));

					continue;
}
Event.observe(expander, "click", this.expandCollapse.bindAsEventListener(this));

Zeile 448Zeile 480
					expander.style.cursor = "hand";
}
else

					expander.style.cursor = "hand";
}
else

				{

				{

					expander.style.cursor = "pointer";
}
expander.controls = expander.id.replace("_img", "");

					expander.style.cursor = "pointer";
}
expander.controls = expander.id.replace("_img", "");

Zeile 471Zeile 503
		}
var expandedItem = $(element.controls+"_e");
var collapsedItem = $(element.controls+"_c");

		}
var expandedItem = $(element.controls+"_e");
var collapsedItem = $(element.controls+"_c");





		if(expandedItem && collapsedItem)
{
if(expandedItem.style.display == "none")
{
expandedItem.style.display = "";
collapsedItem.style.display = "none";

		if(expandedItem && collapsedItem)
{
if(expandedItem.style.display == "none")
{
expandedItem.style.display = "";
collapsedItem.style.display = "none";

				this.saveCollapsed(element.controls);
}

				this.saveCollapsed(element.controls);
}

			else
{
expandedItem.style.display = "none";
collapsedItem.style.display = "";

			else
{
expandedItem.style.display = "none";
collapsedItem.style.display = "";

				this.saveCollapsed(element.controls, 1);
}
}

				this.saveCollapsed(element.controls, 1);
}
}

		else if(expandedItem && !collapsedItem)
{
if(expandedItem.style.display == "none")

		else if(expandedItem && !collapsedItem)
{
if(expandedItem.style.display == "none")

Zeile 508Zeile 540
	},

saveCollapsed: function(id, add)

	},

saveCollapsed: function(id, add)

	{

	{

		var saved = new Array();
var newCollapsed = new Array();
var collapsed = Cookie.get("collapsed");

		var saved = new Array();
var newCollapsed = new Array();
var collapsed = Cookie.get("collapsed");

Zeile 516Zeile 548
		{
saved = collapsed.split("|");
for(var i=0;i<saved.length;i++)

		{
saved = collapsed.split("|");
for(var i=0;i<saved.length;i++)

			{

			{

				if(saved[i] != id && saved[id] != "")
{
newCollapsed[newCollapsed.length] = saved[i];

				if(saved[i] != id && saved[id] != "")
{
newCollapsed[newCollapsed.length] = saved[i];

Zeile 538Zeile 570
	{
var image;
if(options && options.image)

	{
var image;
if(options && options.image)

		{

		{

			image = "<img src=\""+options.image+"\" alt=\"\" />";
}
else

			image = "<img src=\""+options.image+"\" alt=\"\" />";
}
else

Zeile 568Zeile 600
				top += element.offsetTop || 0;
left += element.offsetLeft || 0;
element = element.offsetParent;

				top += element.offsetTop || 0;
left += element.offsetLeft || 0;
element = element.offsetParent;

 
				if(element)
{
if(element.tagName == "BODY" || DomLib.getStyle(element, 'position') == 'relative' || DomLib.getStyle(element, 'position') == 'absolute') break;
}

			} while(element);

left += owner.offsetWidth;

			} while(element);

left += owner.offsetWidth;