projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix examples to use elements/init_overlib.html
[freeside.git]
/
httemplate
/
elements
/
popup_link.html
diff --git
a/httemplate/elements/popup_link.html
b/httemplate/elements/popup_link.html
index
0915bfa
..
584ffde
100644
(file)
--- a/
httemplate/elements/popup_link.html
+++ b/
httemplate/elements/popup_link.html
@@
-2,8
+2,7
@@
Example:
Example:
- <SCRIPT TYPE="text/javascript" SRC="overlibmws.js"></SCRIPT>
- <SCRIPT TYPE="text/javascript" SRC="iframecontentmws.js"></SCRIPT>
+ include('/elements/init_overlib.html')
include( '/elements/popup_link.html', { #hashref or a list, either way is fine
include( '/elements/popup_link.html', { #hashref or a list, either way is fine
@@
-18,11
+17,15
@@
Example:
'width' => '540',
'color' => '#ff0000',
'closetext' => 'Go Away', # the value '' removes the link
'width' => '540',
'color' => '#ff0000',
'closetext' => 'Go Away', # the value '' removes the link
+ 'aname' => "target", # link NAME= value, useful for #targets
} )
</%doc>
% if ($params->{'action'} && $label) {
} )
</%doc>
% if ($params->{'action'} && $label) {
-<A HREF="javascript:void(0);" onClick="<% $onclick %>"><% $label %></A>\
+<A HREF="javascript:void(0);"
+ onClick="<% $onclick %>"
+ <% $params->{'aname'} ? 'NAME="'. $params->{'aname'}. '"' : '' %>
+><% $label %></A>\
% }
<%init>
% }
<%init>