cvs: phpdoc /scripts/quickref originalafter.js
| From: | Gabor Hojtsy | Date: | Sat, 22 Nov 2003 12:21:06 +0000 |
| Subject: | cvs: phpdoc /scripts/quickref originalafter.js | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969357015@lists.php.net to get a copy of this message | ||
goba Sat Nov 22 07:21:06 2003 EDT
Modified files:
/phpdoc/scripts/quickref originalafter.js
Log:
a little size optimization
Index: phpdoc/scripts/quickref/originalafter.js
diff -u phpdoc/scripts/quickref/originalafter.js:1.4 phpdoc/scripts/quickref/originalafter.js:1.5
--- phpdoc/scripts/quickref/originalafter.js:1.4 Sat Nov 22 07:17:55 2003
+++ phpdoc/scripts/quickref/originalafter.js Sat Nov 22 07:21:06 2003
@@ -227,9 +227,9 @@
function fh_EKeyDown(ev)
{
ev=ev||event||null;
- if (f_s.value=="quickref"&&ev) {
+ if (f_s.value=="quickref"&&ev&&fh_matches.length>0) {
var cc=ev.charCode||ev.keyCode||ev.which;
- if ((cc==38||cc==57385)&&fh_matches.length>0) { // up
+ if (cc==38||cc==57385) { // up
if (fh_inmenu) {
if (--fh_menupos<0) fh_menupos=fh_matches.length-1;
} else {
@@ -239,7 +239,7 @@
fh_UpdateMenu();
return false;
}
- if ((cc==40||cc==57386)&&fh_matches.length>0) { // down
+ if (cc==40||cc==57386) { // down
if (fh_inmenu) {
if (++fh_menupos>=fh_matches.length) fh_menupos=0;
} else {