Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.help.webapp/advanced/livehelp.js.jsp')
-rw-r--r--org.eclipse.help.webapp/advanced/livehelp.js.jsp8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.help.webapp/advanced/livehelp.js.jsp b/org.eclipse.help.webapp/advanced/livehelp.js.jsp
index 99210b3b2..7d752dd11 100644
--- a/org.eclipse.help.webapp/advanced/livehelp.js.jsp
+++ b/org.eclipse.help.webapp/advanced/livehelp.js.jsp
@@ -17,12 +17,18 @@ function liveActionInternal(topHelpWindow, pluginId, className, argument)
{
<%
RequestData data = new RequestData(application,request, response);
+ WebappPreferences prefs = data.getPrefs();
if(data.getMode() == RequestData.MODE_INFOCENTER){
%>
alert("<%=UrlUtil.JavaScriptEncode(ServletResources.getString("noLiveHelpInInfocenter", request))%>");
return;
<%
- }else{
+ }else if(!prefs.isActiveHelp()){
+%>
+ alert("<%=UrlUtil.JavaScriptEncode(ServletResources.getString("noLiveHelp", request))%>");
+ return;
+<%
+ }else {
%>
// construct the proper url for communicating with the server
var url= window.location.href;

Back to the top