galaxy-dist commit 7698203440de: Fix functional tests as they think dynamically created jQuery elements are real
# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User Kanwei Li <kanwei@gmail.com> # Date 1286227378 14400 # Node ID 7698203440dec7457f6fd273a36f30ed89e05821 # Parent 8f2e21b079864cb02b2c4e5bfc3343cbf867e259 Fix functional tests as they think dynamically created jQuery elements are real --- a/templates/tool_form.mako +++ b/templates/tool_form.mako @@ -23,8 +23,8 @@ from galaxy.util.expressions import Expr var file_name = $(this).attr("name"); file.attr( { name: 'replaced_file_input_' + file_name, disabled: true } ); // create a new hidden field which stores the filename and has the original name of the file input - var new_file_input = $('<input type="hidden" />'); - new_file_input.attr( { "value": file_value, "name": file_name } ); + var new_file_input = $(document.createElement('input')); + new_file_input.attr( { "type", "hidden", "value": file_value, "name": file_name } ); file.after(new_file_input); } });
participants (1)
-
commits-noreply@bitbucket.org