From 5f1279299bcf1b59ed15964d84be8e9a8e871abe Mon Sep 17 00:00:00 2001 From: Konrad Kolosowski Date: Mon, 3 May 2004 15:11:37 +0000 Subject: 60721 JavaScript error when trying to print certain help pages --- org.eclipse.help.webapp/advanced/contentActions.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'org.eclipse.help.webapp') 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(); } -- cgit v1.2.3