Vergleich jscripts/general.js - 1.4.1 - 1.4.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 49Zeile 49
		if(navigator.product == "Gecko" && navigator.vendor.indexOf("Apple Computer") != -1)
{
this.browser = "safari";

		if(navigator.product == "Gecko" && navigator.vendor.indexOf("Apple Computer") != -1)
{
this.browser = "safari";

 
		}
else if(this.useragent.indexOf("chrome") != -1)
{
this.browser = "chrome";

		}
else if(navigator.product == "Gecko")
{

		}
else if(navigator.product == "Gecko")
{

Zeile 67Zeile 71
			this.browser = "ie";
}
else if(this.useragent.indexOf("compatible") == -1 && this.useragent.indexOf("mozilla") != -1)

			this.browser = "ie";
}
else if(this.useragent.indexOf("compatible") == -1 && this.useragent.indexOf("mozilla") != -1)

		{

		{

			this.browser = "netscape";
}


			this.browser = "netscape";
}


Zeile 78Zeile 82
		else if(this.useragent.indexOf("mac") != -1)
{
this.os = "mac";

		else if(this.useragent.indexOf("mac") != -1)
{
this.os = "mac";

		}
},


		}
},


	popupWindow: function(url, name, width, height)
{
settings = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";

if(width)

	popupWindow: function(url, name, width, height)
{
settings = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";

if(width)

		{

		{

			settings = settings+",width="+width;
}


			settings = settings+",width="+width;
}


Zeile 100Zeile 104
	deleteEvent: function(eid)
{
confirmReturn = confirm(deleteevent_confirm);

	deleteEvent: function(eid)
{
confirmReturn = confirm(deleteevent_confirm);


if(confirmReturn == true)
{


if(confirmReturn == true)
{

			form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", "calendar.php");

			form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", "calendar.php");

Zeile 111Zeile 115
			if(this.browser == "ie")
{
var input = document.createElement("<input name=\"action\">");

			if(this.browser == "ie")
{
var input = document.createElement("<input name=\"action\">");

			}
else

			}
else

			{
var input = document.createElement("input");
input.setAttribute("name", "action");
}
input.setAttribute("name", "action");

			{
var input = document.createElement("input");
input.setAttribute("name", "action");
}
input.setAttribute("name", "action");

			input.setAttribute("type", "hidden");

			input.setAttribute("type", "hidden");

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


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


Zeile 136Zeile 140
				input.setAttribute("type", "hidden");
input.setAttribute("value", my_post_key);
form.appendChild(input);

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

			}

			}


if(this.browser == "ie")
{
var input = document.createElement("<input name=\"eid\">");


if(this.browser == "ie")
{
var input = document.createElement("<input name=\"eid\">");

			}
else
{

			}
else
{

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

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

			}

			}

			input.setAttribute("type", "hidden");
input.setAttribute("value", eid);

			input.setAttribute("type", "hidden");
input.setAttribute("value", eid);

			form.appendChild(input);

if(this.browser == "ie")
{
var input = document.createElement("<input name=\"delete\">");
}

			form.appendChild(input);

if(this.browser == "ie")
{
var input = document.createElement("<input name=\"delete\">");
}

			else
{
var input = document.createElement("input");

			else
{
var input = document.createElement("input");

Zeile 166Zeile 170

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


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

		}
},


		}
},


	checkAll: function(e)
{
var allbox = Event.element(e);
var form = Event.findElement(e, 'FORM');
if(!form)

	checkAll: function(e)
{
var allbox = Event.element(e);
var form = Event.findElement(e, 'FORM');
if(!form)

		{

		{

			return false;
}
form.getElements().each(function(element) {

			return false;
}
form.getElements().each(function(element) {

Zeile 204Zeile 208
			if(this.browser == "ie")
{
var input = document.createElement("<input name=\"rid\">");

			if(this.browser == "ie")
{
var input = document.createElement("<input name=\"rid\">");

			}
else
{
var input = document.createElement("input");

			}
else
{
var input = document.createElement("input");

				input.setAttribute("name", "rid");
}
input.setAttribute("type", "hidden");

				input.setAttribute("name", "rid");
}
input.setAttribute("type", "hidden");

Zeile 266Zeile 270

promptres = prompt("Quick Page Jump\nPlease enter a page number between 1 and "+pages+" to jump to.", defpage);



promptres = prompt("Quick Page Jump\nPlease enter a page number between 1 and "+pages+" to jump to.", defpage);


		if((promptres != null) && (promptres != "") & (promptres > 1) && (promptres <= pages))

		if((promptres != null) && (promptres != "") && (promptres > 1) && (promptres <= pages))

		{
window.location = "showthread.php?tid="+tid+"&page"+promotres;
}

		{
window.location = "showthread.php?tid="+tid+"&page"+promotres;
}

Zeile 313Zeile 317
				if(this.browser == "ie")
{
var input = document.createElement("<input name=\"action\">");

				if(this.browser == "ie")
{
var input = document.createElement("<input name=\"action\">");

				}

				}

				else
{
var input = document.createElement("input");

				else
{
var input = document.createElement("input");

Zeile 412Zeile 416
				input.setAttribute("value", this.HTMLchars(document.location.href));
form.appendChild(input);
}

				input.setAttribute("value", this.HTMLchars(document.location.href));
form.appendChild(input);
}

			
if(this.browser == "ie")
{
var input = document.createElement("<input name=\"username\">");
}
else
{
var input = document.createElement("input");
input.setAttribute("name", "username");
}















			
if(this.browser == "ie")
{
var input = document.createElement("<input name=\"quick_login\">");
}
else
{
var input = document.createElement("input");
input.setAttribute("name", "quick_login");
}

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

if(this.browser == "ie")
{
var input = document.createElement("<input name=\"quick_username\">");
}
else
{
var input = document.createElement("input");
input.setAttribute("name", "quick_username");
}

			input.setAttribute("type", "text");
input.setAttribute("value", lang.username);
input.setAttribute("class", "textbox");
input.setAttribute("onfocus", "if(this.value == '"+lang.username+"') { this.value=''; }");
input.setAttribute("onblur", "if(this.value == '') { this.value='"+lang.username+"'; }");
input.id = 'quick_login_username';

			input.setAttribute("type", "text");
input.setAttribute("value", lang.username);
input.setAttribute("class", "textbox");
input.setAttribute("onfocus", "if(this.value == '"+lang.username+"') { this.value=''; }");
input.setAttribute("onblur", "if(this.value == '') { this.value='"+lang.username+"'; }");
input.id = 'quick_login_username';

			form.appendChild(input);
form.innerHTML += " ";

if(this.browser == "ie")
{
var input = document.createElement("<input name=\"password\">");
}
else

			form.appendChild(input);
form.innerHTML += " ";

if(this.browser == "ie")
{
var input = document.createElement("<input name=\"quick_password\">");
}
else

			{
var input = document.createElement("input");

			{
var input = document.createElement("input");

				input.setAttribute("name", "password");

				input.setAttribute("name", "quick_password");

			}
input.setAttribute("type", "password");
input.setAttribute("value", lang.password);

			}
input.setAttribute("type", "password");
input.setAttribute("value", lang.password);

Zeile 462Zeile 480
			input.setAttribute("value", lang.login);
input.setAttribute("class", "button");
form.appendChild(input);

			input.setAttribute("value", lang.login);
input.setAttribute("class", "button");
form.appendChild(input);

			

			

			form.innerHTML += lang.lost_password+lang.register_url;

$("quick_login").innerHTML = "";

			form.innerHTML += lang.lost_password+lang.register_url;

$("quick_login").innerHTML = "";

Zeile 473Zeile 491
		return false;
}
};

		return false;
}
};




 

var Cookie = {
get: function(name)


var Cookie = {
get: function(name)