details:
http://www.bx.psu.edu/hg/galaxy/rev/bb50ac713feb
changeset: 3402:bb50ac713feb
user: jeremy goecks <jeremy.goecks(a)emory.edu>
date: Tue Feb 16 17:05:12 2010 -0500
description:
Open links to galaxy screencasts in pages in an overlay.
diffstat:
templates/display_base.mako | 46 +++++++++++++++++++++++++++++++++-----------
1 files changed, 34 insertions(+), 12 deletions(-)
diffs (56 lines):
diff -r 99b373f37475 -r bb50ac713feb templates/display_base.mako
--- a/templates/display_base.mako Tue Feb 16 14:07:50 2010 -0500
+++ b/templates/display_base.mako Tue Feb 16 17:05:12 2010 -0500
@@ -35,18 +35,40 @@
${h.js( "galaxy.base", "jquery", "json2",
"jquery.autocomplete", "autocomplete_tagging" )}
<script type="text/javascript">
- //
- // Handle click on community tag.
- //
- function community_tag_click(tag_name, tag_value)
- {
- <% controller_name = get_controller_name( item ) %>
- var href = '${h.url_for ( controller='/' + controller_name ,
action='list_published')}';
- href = href + "?f-tags=" + tag_name;
- if (tag_value != null && tag_value != "")
- href = href + ":" + tag_value;
- self.location = href;
- }
+ //
+ // Handle click on community tag.
+ //
+ function community_tag_click(tag_name, tag_value)
+ {
+ <% controller_name = get_controller_name( item ) %>
+ var href = '${h.url_for ( controller='/' + controller_name ,
action='list_published')}';
+ href = href + "?f-tags=" + tag_name;
+ if (tag_value != null && tag_value != "")
+ href = href + ":" + tag_value;
+ self.location = href;
+ }
+
+ $(document).ready( function()
+ {
+ // Set links to Galaxy screencasts to open in overlay.
+
$(this).find("a[href^='http://screencast.g2.bx.psu.edu/']").each(
function()
+ {
+ $(this).click( function()
+ {
+ var href = $(this).attr('href');
+ options =
+ {
+ url: href,
+ width: 640,
+ height: 480,
+ scroll: 'no'
+ };
+ show_in_overlay(options);
+ return false;
+ });
+ });
+
+ });
</script>
</%def>