Skip to content

Commit

Permalink
Move failing js to bottom of the file. Fixes#695
Browse files Browse the repository at this point in the history
A temporary workaround until this template is refactored
into Patternfly, when bootstrap-switch can be used,
and the following js code will work
  • Loading branch information
asankov committed Jan 10, 2019
1 parent c01c380 commit 3746c88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tcms/static/js/testcase_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
}
};


Expand Down

0 comments on commit 3746c88

Please sign in to comment.