Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c14228ae
Commit
c14228ae
authored
May 07, 2007
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/js/mahara.js
View file @
c14228ae
...
...
@@ -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
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment