diff --git a/lib/galaxy/web/framework/helpers/__init__.py b/lib/galaxy/web/framework/helpers/__init__.py index c04ad350020..cb9eb27eb57 100644 --- a/lib/galaxy/web/framework/helpers/__init__.py +++ b/lib/galaxy/web/framework/helpers/__init__.py @@ -27,14 +27,17 @@ def css( *args ): Take a list of stylesheet names (no extension) and return appropriate string of link tags. - TODO: This has a hardcoded "?v=1" to defeat caching. This should be done + TODO: This has a hardcoded "?v=2" to defeat caching. This should be done in a better way. """ - return "\n".join( [ stylesheet_link_tag( "/static/style/" + name + ".css?v=1" ) for name in args ] ) + return "\n".join( [ stylesheet_link_tag( "/static/style/" + name + ".css?v=2" ) for name in args ] ) def js( *args ): """ Take a list of javascript names (no extension) and return appropriate string of script tags. + + TODO: This has a hardcoded "?v=2" to defeat caching. This should be done + in a better way. """ - return "\n".join( [ javascript_include_tag( "/static/scripts/" + name + ".js" ) for name in args ] ) \ No newline at end of file + return "\n".join( [ javascript_include_tag( "/static/scripts/" + name + ".js?v=2" ) for name in args ] ) diff --git a/templates/base.mako b/templates/base.mako index f3f7f877048..1dff6e99632 100644 --- a/templates/base.mako +++ b/templates/base.mako @@ -27,9 +27,6 @@ ${self.javascripts()} ## - - - - + ${h.js( "jquery", "galaxy.base" )} diff --git a/templates/workflow/editor.mako b/templates/workflow/editor.mako index 75c627a12d6..3e6eeae0660 100644 --- a/templates/workflow/editor.mako +++ b/templates/workflow/editor.mako @@ -25,17 +25,17 @@ - - - - - - - - - - + ${h.js( "jquery", + "jquery.event.drag", + "jquery.event.drop", + "jquery.event.hover", + "jquery.form", + "jquery.jstore-all", + "json2", + "galaxy.base", + "galaxy.workflow_editor.canvas" )} +