summaryrefslogtreecommitdiffstats
path: root/dashboard/src/templates/resource/steps/define_hardware.html
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-06-21 17:08:56 -0400
committerParker Berberian <pberberian@iol.unh.edu>2019-06-25 13:52:33 -0400
commitac0fe888b57a2cba9b2884590dc38e6680f54d22 (patch)
tree0648343dd87b98e91a06c70ea4db1d7df86e8170 /dashboard/src/templates/resource/steps/define_hardware.html
parent269041890fb9329648d9243e2ab88bd6a5d40fb0 (diff)
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 <pberberian@iol.unh.edu>
Diffstat (limited to 'dashboard/src/templates/resource/steps/define_hardware.html')
-rw-r--r--dashboard/src/templates/resource/steps/define_hardware.html15
1 files changed, 1 insertions, 14 deletions
diff --git a/dashboard/src/templates/resource/steps/define_hardware.html b/dashboard/src/templates/resource/steps/define_hardware.html
index 77df5a2..57078e9 100644
--- a/dashboard/src/templates/resource/steps/define_hardware.html
+++ b/dashboard/src/templates/resource/steps/define_hardware.html
@@ -15,20 +15,7 @@ with your current configuration will become unavailable.</p>
</form>
{% 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);