com web/php: - go directly to the correct page rather then hitting the errorhandler first - fix 'undefined' error on maybe-we-should-skip-these-hits
categories: js/common.js
| From: | Paul Dragoonis | Date: | Sun, 02 Jan 2011 14:24:57 +0000 |
| Subject: | com web/php: - go directly to the correct page rather then hitting the errorhandler first - fix 'undefined' error on maybe-we-should-skip-these-hits categories: js/common.js |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-23669@lists.php.net to get a copy of this message | ||
Commit: d1f2c95bf6c9e6430efdafcfbc4ac6a5b67ac18a
Author: Hannes Magnusson <bjori@php.net> Sun, 2 Jan 2011 14:24:57 +0000
Parents: bd55d4af5dbf6e929edc5366525d6c0333ffb9fd
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=d1f2c95bf6c9e6430efdafcfbc4ac6a5b67ac18a
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:
M js/common.js
Diff:
diff --git a/js/common.js b/js/common.js
index 399a615..7d75c9b 100644
--- a/js/common.js
+++ b/js/common.js
@@ -74,7 +74,7 @@ $(document).ready(function() {
'phpdoc:exceptionref': 'Exceptions',
'refentry': 'Functions'
};
- return indexes[key];
+ return indexes[key] || key;
}
});
$('#headsearch-keywords').catcomplete({
@@ -122,7 +122,7 @@ $(document).ready(function() {
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';
}
}
});