git-svn-id: http://svn.automattic.com/wordpress/trunk@2587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eb60eaab15
commit
d63d15600a
|
@ -251,7 +251,7 @@ function edSpell(myField) {
|
||||||
if (word == '') {
|
if (word == '') {
|
||||||
word = prompt('Enter a word to look up:', '');
|
word = prompt('Enter a word to look up:', '');
|
||||||
}
|
}
|
||||||
if (word != '') {
|
if (word !== null && /^\w[\w ]*$/.test(word)) {
|
||||||
window.open('http://www.answers.com/' + escape(word));
|
window.open('http://www.answers.com/' + escape(word));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue