Javascript fix

http://wordpress.org/support/3/1827


git-svn-id: https://develop.svn.wordpress.org/trunk@829 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-02-05 05:40:25 +00:00
parent 7c84f63300
commit e39c5802bc
1 changed files with 61 additions and 57 deletions

View File

@ -89,6 +89,7 @@ setTimeout("redirect();", 600);
function helpWindow(url) {
window.open(url, "Help", "width=640, height=450, location=0, menubar=0, resizable=0, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=60, left=60, screenY=60, top=60");
}
function GetElementsWithClassName(elementName, className) {
var allElements = document.getElementsByTagName(elementName);
var elemColl = new Array();
@ -106,7 +107,6 @@ setTimeout("redirect();", 600);
var aInputs = document.getElementsByTagName('input');
for (var i = 0; i < aInputs.length; i++) {
aInputs[i].onclick = function() {
var inputColl = GetElementsWithClassName('input','valinp');
var rel = document.getElementById('rel');
@ -117,8 +117,10 @@ setTimeout("redirect();", 600);
}
}
inputs = inputs.substr(0,inputs.length - 1);
if (rel != null) {
rel.value = inputs;
}
}
aInputs[i].onkeyup = function() {
var inputColl = GetElementsWithClassName('input','valinp');
@ -130,8 +132,10 @@ setTimeout("redirect();", 600);
}
}
inputs = inputs.substr(0,inputs.length - 1);
if (rel != null) {
rel.value = inputs;
}
}
}
}