From e94b08027aa731b3aa4b001b91e2523d6d02e840 Mon Sep 17 00:00:00 2001 From: asankov Date: Thu, 10 Jan 2019 21:14:12 +0200 Subject: [PATCH] Move failing js to bottom of the file. Fixes #695 A temporary workaround until this template is refactored into Patternfly, when bootstrap-switch can be used, and the following js code will work --- tcms/static/js/testcase_actions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tcms/static/js/testcase_actions.js b/tcms/static/js/testcase_actions.js index e5bb63ca65..6792644680 100644 --- a/tcms/static/js/testcase_actions.js +++ b/tcms/static/js/testcase_actions.js @@ -162,10 +162,6 @@ Nitrate.TestCases.Edit.on_load = function() { }; 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(); @@ -206,6 +202,10 @@ Nitrate.TestCases.Clone.on_load = function() { window.history.go('-1'); }); + $('#id_product').change(update_version_select_from_product); + if (!$('#id_version').val().length) { + update_version_select_from_product(); + } };