diff --git a/tcms/static/js/testcase_actions.js b/tcms/static/js/testcase_actions.js index 6085b4ed59..7d422ca59c 100644 --- a/tcms/static/js/testcase_actions.js +++ b/tcms/static/js/testcase_actions.js @@ -25,46 +25,6 @@ Nitrate.TestCases.Clone = {}; Nitrate.TestCases.Clone.on_load = function() { - $('#id_product').change(update_version_select_from_product); - if (!$('#id_version').val().length) { - update_version_select_from_product(); - } - - jQ('#id_form_search_plan').bind('submit', function(e) { - e.stopPropagation(); - e.preventDefault(); - - var url = '/plans/'; - var container = jQ('#id_plan_container'); - container.show(); - - jQ.ajax({ - 'url': url, - 'type': 'GET', - 'data': jQ(this).serialize(), - 'success': function (data, textStatus, jqXHR) { - container.html(data); - } - }); - }); - - jQ('#id_use_filterplan').bind('click', function(e) { - jQ('#id_form_search_plan :input').attr('disabled', false); - jQ('#id_plan_id').val(''); - jQ('#id_plan_id').attr('name', ''); - jQ('#id_copy_case').attr('checked', true); - }); - - jQ('#id_use_sameplan').bind('click', function(e) { - jQ('#id_form_search_plan :input').attr('disabled', true); - jQ('#id_plan_id').val(jQ('#value_plan_id').val()); - jQ('#id_plan_id').attr('name', 'plan'); - jQ('#id_plan_container').html('
').hide(); - jQ('#id_copy_case').attr('checked', false); - }); - - $('#id_use_sameplan').click(); - jQ('.js-cancel-button').bind('click', function() { window.history.go('-1'); }); diff --git a/tcms/templates/case/clone.html b/tcms/templates/case/clone.html index 7486ad9b8b..43f45fb89a 100644 --- a/tcms/templates/case/clone.html +++ b/tcms/templates/case/clone.html @@ -17,77 +17,14 @@ {% endblock %} {% block contents %}