Permalink
Browse files

[webdoc] Also check id attribute existence when inserting native link

  • Loading branch information...
1 parent 52824ce commit 8f4b7e7558414c594b7d5336e0f3c9da80629e4e @garuma garuma committed Aug 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 webdoc/index.aspx
View
2 webdoc/index.aspx
@@ -108,7 +108,7 @@ update_tree = function () {
update_tree ();
add_native_browser_link = function () {
var contentDiv = $('#content_frame').contents ().find ('div[class=Content]').first ();
- if (contentDiv.length > 0) {
+ if (contentDiv.length > 0 && contentDiv.attr ('id')) {
var id = contentDiv.attr ('id').replace (':Summary', '');
var h2 = contentDiv.children ('h2').first ();
if (h2.prev ().attr ('class') != 'native-browser')

0 comments on commit 8f4b7e7

Please sign in to comment.