Commit 1615a288 authored by Amos Latteier's avatar Amos Latteier

Some cosmetic changes on the help system included a bit of javascript.

parent 4544ab72
......@@ -154,7 +154,7 @@ class HelpSystem(Acquisition.Implicit, ObjectManager, Item, Persistent):
"""
Insert a help button linked to a help topic.
"""
return self.button(self, product=product, topic=topic)
return self.button(self, self.REQUEST, product=product, topic=topic)
class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent):
......
<div align="right">
<SCRIPT LANGUAGE="JavaScript">
function openHelpWindow(url) {
helpWindow = window.open(url,"zope_help","width=600,height=500,menubar=yes,scrollbars=yes,resizable=yes");
helpWindow.focus();
return false;
}
</SCRIPT>
<font face="Verdana, Arial, Helvetica" size="1">
<form action="<dtml-var absolute_url>" target="zope_help" method="post">
<form action="<dtml-var absolute_url>" target="zope_help" method="post"
onSubmit="return openHelpWindow('<dtml-var absolute_url>?help_url=/Control_Panel/Products/&dtml-product;/Help/&dtml-topic;');">
<dtml-if "_.getitem('product') and _.getitem('topic')">
<input type="hidden" name="help_url" value="/Control_Panel/Products/&dtml-product;/Help/&dtml-topic;">
</dtml-if>
......
......@@ -2,12 +2,12 @@
<HEAD>
<TITLE>Zope Help System</TITLE>
</HEAD>
<FRAMESET COLS="225,*">
<FRAMESET COLS="200,*">
<FRAME SRC="menu" NAME="help_menu"
MARGINWIDTH="2" MARGINHEIGHT="2" SCROLLING="auto">
<FRAME
<dtml-if "_.has_key('help_url')">
SRC="<dtml-var help_url>"
SRC="<dtml-var SCRIPT_NAME><dtml-var help_url>"
<dtml-else>
SRC="main"
</dtml-if>
......
......@@ -26,18 +26,4 @@ padding: 10pt;
</head>
<body>
<table width="100%">
<tr valign="top">
<td>Help Categories:
<dtml-in categories>
<dtml-var sequence-item><dtml-unless sequence-end>,</dtml-unless>
</dtml-in>
</td>
<td>Help Permissions:
<dtml-in permissions>
<dtml-var sequence-item><dtml-unless sequence-end>,</dtml-unless>
</dtml-in>
</td>
</tr>
</table>
<dtml-if title><h2><dtml-var title></h2></dtml-if>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment