diff options
author | Jérémie Laval <jeremie.laval@gmail.com> | 2012-08-09 18:30:07 +0400 |
---|---|---|
committer | Jérémie Laval <jeremie.laval@gmail.com> | 2012-08-09 18:30:29 +0400 |
commit | 8f4b7e7558414c594b7d5336e0f3c9da80629e4e (patch) | |
tree | 0acef64a4fc911e4d66977b67dcfdb2b15525a09 /webdoc | |
parent | 52824ced99a44b57a714545f13973005212d9eed (diff) |
[webdoc] Also check id attribute existence when inserting native link
Diffstat (limited to 'webdoc')
-rw-r--r-- | webdoc/index.aspx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webdoc/index.aspx b/webdoc/index.aspx index 15dd3267..728ad43d 100644 --- a/webdoc/index.aspx +++ b/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') |