From 0b82b343f6d84a7420a2aea573a7c8d9597d8652 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Fri, 21 Jun 2019 17:08:56 -0400 Subject: Move JS to external file This is mostly a proof of concept to move all JS to external files to pave the way for future re-architecting Change-Id: I3b6f00bff7325b85a75d37f554892fa5283d9f4b Signed-off-by: Parker Berberian --- src/templates/resource/steps/define_hardware.html | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/templates/resource/steps/define_hardware.html') diff --git a/src/templates/resource/steps/define_hardware.html b/src/templates/resource/steps/define_hardware.html index 77df5a2..57078e9 100644 --- a/src/templates/resource/steps/define_hardware.html +++ b/src/templates/resource/steps/define_hardware.html @@ -15,20 +15,7 @@ with your current configuration will become unavailable.

{% endblock content %} {% block onleave %} -var normalize = function(data){ - //converts the top level keys in data to map to lists - var normalized = {} - for( var key in data ){ - normalized[key] = []; - for( var subkey in data[key] ){ - normalized[key].push(data[key][subkey]); - } - } - return normalized; -} -var data = result; -data = JSON.stringify(data); -document.getElementById("filter_field").value = data; +multi_filter_widget.finish(); var formData = $("#define_hardware_form").serialize(); req = new XMLHttpRequest(); req.open('POST', '/wf/workflow/', false); -- cgit 1.2.3-korg