svn: /web/php/trunk/js/ common.js
[email protected] (Hannes Magnusson)
| Newsgroups | php.webmaster |
|---|---|
| Message-ID | <[email protected]> |
bjori Sun, 02 Jan 2011 14:24:57 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306983
Log:
- go directly to the correct page rather then hitting the errorhandler first
- fix 'undefined' error on maybe-we-should-skip-these-hits categories
Changed paths:
U web/php/trunk/js/common.js
Modified: web/php/trunk/js/common.js
===================================================================
--- web/php/trunk/js/common.js 2011-01-02 13:37:29 UTC (rev 306982)
+++ web/php/trunk/js/common.js 2011-01-02 14:24:57 UTC (rev 306983)
@@ -74,7 +74,7 @@
'phpdoc:exceptionref': 'Exceptions',
'refentry': 'Functions'
};
- return indexes[key];
+ return indexes[key] || key;
}
});
$('#headsearch-keywords').catcomplete({
@@ -122,7 +122,7 @@
event.preventDefault();
$('#headsearch-keywords').val(ui.item.label);
if (ui.item.value) {
- window.location = '/manual/' + getLanguage() + '/' + ui.item.value;
+ window.location = '/manual/' + getLanguage() + '/' + ui.item.value + '.php';
}
}
});