mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 12:35:03 +00:00
Javascript fix
http://wordpress.org/support/3/1827 git-svn-id: http://svn.automattic.com/wordpress/trunk@829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
df997de886
commit
bf0aac0d51
@ -89,6 +89,7 @@ setTimeout("redirect();", 600);
|
|||||||
function helpWindow(url) {
|
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");
|
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) {
|
function GetElementsWithClassName(elementName, className) {
|
||||||
var allElements = document.getElementsByTagName(elementName);
|
var allElements = document.getElementsByTagName(elementName);
|
||||||
var elemColl = new Array();
|
var elemColl = new Array();
|
||||||
@ -106,7 +107,6 @@ setTimeout("redirect();", 600);
|
|||||||
var aInputs = document.getElementsByTagName('input');
|
var aInputs = document.getElementsByTagName('input');
|
||||||
|
|
||||||
for (var i = 0; i < aInputs.length; i++) {
|
for (var i = 0; i < aInputs.length; i++) {
|
||||||
|
|
||||||
aInputs[i].onclick = function() {
|
aInputs[i].onclick = function() {
|
||||||
var inputColl = GetElementsWithClassName('input','valinp');
|
var inputColl = GetElementsWithClassName('input','valinp');
|
||||||
var rel = document.getElementById('rel');
|
var rel = document.getElementById('rel');
|
||||||
@ -117,8 +117,10 @@ setTimeout("redirect();", 600);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
inputs = inputs.substr(0,inputs.length - 1);
|
inputs = inputs.substr(0,inputs.length - 1);
|
||||||
|
if (rel != null) {
|
||||||
rel.value = inputs;
|
rel.value = inputs;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
aInputs[i].onkeyup = function() {
|
aInputs[i].onkeyup = function() {
|
||||||
var inputColl = GetElementsWithClassName('input','valinp');
|
var inputColl = GetElementsWithClassName('input','valinp');
|
||||||
@ -130,8 +132,10 @@ setTimeout("redirect();", 600);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
inputs = inputs.substr(0,inputs.length - 1);
|
inputs = inputs.substr(0,inputs.length - 1);
|
||||||
|
if (rel != null) {
|
||||||
rel.value = inputs;
|
rel.value = inputs;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user