Zeile 49 | Zeile 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(navigator.product == "Gecko") { this.browser = "mozilla";
| |
} else if(this.useragent.indexOf("chrome") != -1) { this.browser = "chrome";
|
} else if(this.useragent.indexOf("chrome") != -1) { this.browser = "chrome";
|
| } else if(navigator.product == "Gecko") { this.browser = "mozilla";
|
} else if(this.useragent.indexOf("opera") != -1) { this.browser = "opera"; } else if(this.useragent.indexOf("konqueror") != -1)
|
} else if(this.useragent.indexOf("opera") != -1) { this.browser = "opera"; } else if(this.useragent.indexOf("konqueror") != -1)
|
{
| {
|
this.browser = "konqueror"; } else if(this.useragent.indexOf("msie") != -1)
| this.browser = "konqueror"; } else if(this.useragent.indexOf("msie") != -1)
|
Zeile 76 | Zeile 76 |
---|
}
if(this.useragent.indexOf("win") != -1)
|
}
if(this.useragent.indexOf("win") != -1)
|
{
| {
|
this.os = "win";
|
this.os = "win";
|
}
| }
|
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 104 | Zeile 104 |
---|
deleteEvent: function(eid) { confirmReturn = confirm(deleteevent_confirm);
|
deleteEvent: function(eid) { confirmReturn = confirm(deleteevent_confirm);
|
|
|
if(confirmReturn == true) { form = document.createElement("form");
| if(confirmReturn == true) { form = document.createElement("form");
|
Zeile 115 | Zeile 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 140 | Zeile 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\">"); } else
| form.appendChild(input);
if(this.browser == "ie") { var input = document.createElement("<input name=\"delete\">"); } else
|
{ var input = document.createElement("input"); input.setAttribute("name", "delete");
| { var input = document.createElement("input"); input.setAttribute("name", "delete");
|
Zeile 187 | Zeile 187 |
---|
element.checked = allbox.checked; } });
|
element.checked = allbox.checked; } });
|
},
| },
|
reputation: function(uid) {
| reputation: function(uid) {
|
Zeile 213 | Zeile 213 |
---|
{ var input = document.createElement("input"); input.setAttribute("name", "rid");
|
{ var input = document.createElement("input"); input.setAttribute("name", "rid");
|
} input.setAttribute("type", "hidden");
| } input.setAttribute("type", "hidden");
|
input.setAttribute("value", rid); form.appendChild(input);
if(my_post_key)
|
input.setAttribute("value", rid); form.appendChild(input);
if(my_post_key)
|
{
| {
|
if(this.browser == "ie") { var input = document.createElement("<input name=\"my_post_key\">");
| if(this.browser == "ie") { var input = document.createElement("<input name=\"my_post_key\">");
|
Zeile 232 | Zeile 232 |
---|
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") {
| if(this.browser == "ie") {
|
Zeile 246 | Zeile 246 |
---|
input.setAttribute("type", "hidden"); input.setAttribute("value", uid); form.appendChild(input);
|
input.setAttribute("type", "hidden"); input.setAttribute("value", uid); form.appendChild(input);
|
|
|
document.getElementsByTagName("body")[0].appendChild(form); form.submit(); }
| document.getElementsByTagName("body")[0].appendChild(form); form.submit(); }
|
Zeile 266 | Zeile 266 |
---|
else { defpage = 1;
|
else { defpage = 1;
|
}
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))
| }
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))
|
{ window.location = "showthread.php?tid="+tid+"&page"+promotres; }
| { window.location = "showthread.php?tid="+tid+"&page"+promotres; }
|
Zeile 288 | Zeile 288 |
---|
{ return false; }
|
{ return false; }
|
new Ajax.Request('misc.php?action=markread&fid='+fid+'&ajax=1', {method: 'get', onComplete: function(request) {MyBB.forumMarkedRead(fid, request); }});
| new Ajax.Request('misc.php?action=markread&fid='+fid+'&ajax=1&my_post_key='+my_post_key, {method: 'get', onComplete: function(request) {MyBB.forumMarkedRead(fid, request); }});
|
},
forumMarkedRead: function(fid, request)
| },
forumMarkedRead: function(fid, request)
|
Zeile 434 | Zeile 434 |
---|
if(this.browser == "ie") { var input = document.createElement("<input name=\"quick_username\">");
|
if(this.browser == "ie") { var input = document.createElement("<input name=\"quick_username\">");
|
} else {
| } else {
|
var input = document.createElement("input"); input.setAttribute("name", "quick_username"); }
| var input = document.createElement("input"); input.setAttribute("name", "quick_username"); }
|
Zeile 446 | Zeile 446 |
---|
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("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") {
| form.appendChild(input); form.innerHTML += " "; if(this.browser == "ie") {
|
var input = document.createElement("<input name=\"quick_password\">"); } else { var input = document.createElement("input"); input.setAttribute("name", "quick_password");
|
var input = document.createElement("<input name=\"quick_password\">"); } else { var input = document.createElement("input"); input.setAttribute("name", "quick_password");
|
}
| }
|
input.setAttribute("type", "password"); input.setAttribute("value", lang.password); input.setAttribute("class", "textbox"); input.setAttribute("onfocus", "if(this.value == '"+lang.password+"') { this.value=''; }"); input.setAttribute("onblur", "if(this.value == '') { this.value='"+lang.password+"'; }");
|
input.setAttribute("type", "password"); input.setAttribute("value", lang.password); input.setAttribute("class", "textbox"); input.setAttribute("onfocus", "if(this.value == '"+lang.password+"') { this.value=''; }"); input.setAttribute("onblur", "if(this.value == '') { this.value='"+lang.password+"'; }");
|
form.appendChild(input);
| form.appendChild(input);
|
form.innerHTML += " "; if(this.browser == "ie") { var input = document.createElement("<input name=\"submit\">");
|
form.innerHTML += " "; if(this.browser == "ie") { var input = document.createElement("<input name=\"submit\">");
|
}
| }
|
else { var input = document.createElement("input");
| else { var input = document.createElement("input");
|
Zeile 491 | Zeile 491 |
---|
return false; } };
|
return false; } };
|
| |
var Cookie = { get: function(name)
| var Cookie = { get: function(name)
|