commit/galaxy-central: dan: Change Biostar 'submit' parameter to be called 'action'. Resolves needing to use workaround of 'click()' on submit button instead of submit() on form.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/4f3190509ba2/ Changeset: 4f3190509ba2 User: dan Date: 2014-04-03 17:17:47 Summary: Change Biostar 'submit' parameter to be called 'action'. Resolves needing to use workaround of 'click()' on submit button instead of submit() on form. Affected #: 2 files diff -r 59bd7349a128f06de64f6656f553887b09f18ea2 -r 4f3190509ba240ae8227b2321237876e3e66ecb2 lib/galaxy/util/biostar.py --- a/lib/galaxy/util/biostar.py +++ b/lib/galaxy/util/biostar.py @@ -142,6 +142,6 @@ payload[ 'content' ] = "%s<br />%s" % ( payload['content'], payload2['content'] ) if 'tag_val' in payload2: payload[ 'tag_val' ] = ','.join( [ payload2[ 'tag_val' ], payload[ 'tag_val' ] ] ) - if 'submit' not in payload: - payload[ 'submit' ] = 1 #Automatically post bug reports to biostar + if 'action' not in payload: + payload[ 'action' ] = 1 #Automatically post bug reports to biostar return payload diff -r 59bd7349a128f06de64f6656f553887b09f18ea2 -r 4f3190509ba240ae8227b2321237876e3e66ecb2 templates/webapps/galaxy/biostar/post_redirect.mako --- a/templates/webapps/galaxy/biostar/post_redirect.mako +++ b/templates/webapps/galaxy/biostar/post_redirect.mako @@ -4,9 +4,8 @@ ${parent.javascripts()} <script> $( document ).ready( function(){ - $("#postRedirect").hide(); - ##need to use 'click()' on submit button instead of submit() on form, since Biostar uses a parameter named 'submit' - $("#GalaxySubmitPostRedirectForm").click(); + $("div#postRedirect").hide(); + $("form#postRedirectForm").submit(); }); </script></%def> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org