Merge pull request from sfackler/fix-impls

Fix JS error

Reviewed-by: alexcrichton
This commit is contained in:
bors 2015-01-07 15:35:33 +00:00
commit f7105bfade

@ -708,7 +708,7 @@
var code = $('<code>').append(structs[j]);
$.each(code.find('a'), function(idx, a) {
var href = $(a).attr('href');
if (href && !href.startsWith('http')) {
if (href && href.indexOf('http') !== 0) {
$(a).attr('href', rootPath + href);
}
});