diff options
author | Konrad Kolosowski | 2004-05-03 15:11:37 +0000 |
---|---|---|
committer | Konrad Kolosowski | 2004-05-03 15:11:37 +0000 |
commit | 5f1279299bcf1b59ed15964d84be8e9a8e871abe (patch) | |
tree | 5dedd430c839d23e7a3f904183f85152119fa93c /org.eclipse.help.webapp | |
parent | 72958eed2f9763852d8afbac88351a1c174d6f31 (diff) | |
download | eclipse.platform.ua-5f1279299bcf1b59ed15964d84be8e9a8e871abe.tar.gz eclipse.platform.ua-5f1279299bcf1b59ed15964d84be8e9a8e871abe.tar.xz eclipse.platform.ua-5f1279299bcf1b59ed15964d84be8e9a8e871abe.zip |
60721 JavaScript error when trying to print certain help pages
Diffstat (limited to 'org.eclipse.help.webapp')
-rw-r--r-- | org.eclipse.help.webapp/advanced/contentActions.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/org.eclipse.help.webapp/advanced/contentActions.js b/org.eclipse.help.webapp/advanced/contentActions.js index 666813597..3259a470a 100644 --- a/org.eclipse.help.webapp/advanced/contentActions.js +++ b/org.eclipse.help.webapp/advanced/contentActions.js @@ -89,18 +89,14 @@ function bookmarkInfocenterPage(button) function resynch(button) { - try - { + try { var topic = parent.ContentViewFrame.window.location.href; // remove the query, if any var i = topic.indexOf('?'); if (i != -1) topic = topic.substring(0, i); parent.parent.NavFrame.displayTocFor(topic); - } - catch(e) - { - } + } catch(e) {} if (isIE && button && document.getElementById(button)){ document.getElementById(button).blur(); } @@ -108,8 +104,10 @@ function resynch(button) function printContent(button) { - parent.ContentViewFrame.focus(); - parent.ContentViewFrame.print(); + try { + parent.ContentViewFrame.focus(); + parent.ContentViewFrame.print(); + } catch(e) {} if (isIE && button && document.getElementById(button)){ document.getElementById(button).blur(); } |