Commit c14228ae authored by Penny Leach's avatar Penny Leach
Browse files

made a js version of get help icon (to avoid passing it in as lang

strings which is icky
parent 072589b5
......@@ -257,6 +257,19 @@ contextualHelpContainer = null;
contextualHelpDeferrable = null;
contextualHelpOpened = false;
function contextualHelpIcon(formName, helpName, pluginType, pluginName, page, section) {
var link = A(
{'href': null},
IMG({'alt': '?', 'src': get_themeurl('images/icon_help.gif')})
);
connect(link, 'onclick', function (e) {
e.stop();
contextualHelp(formName, helpName, pluginType, pluginName, page, section, link);
});
return link;
}
function contextualHelp(formName, helpName, pluginType, pluginName, page, section, ref) {
var key;
var target = $(formName + '_' + helpName + '_container');
......
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