public/javascripts/chef.js in chef-server-webui-0.10.0.beta.6 vs public/javascripts/chef.js in chef-server-webui-0.10.0.beta.7
- old
+ new
@@ -51,12 +51,10 @@
buildHiddenFormFromDragDrop($(this), $('ul.runListItemList'));
buildHiddenFormFromJSONEditor($(this));
});
$('form#edit_environment, form#create_environment').submit(function(event) {
- var form = $(this);
- form.append('<input type="hidden" id="attributes" name="attributes"/>');
- $('input#attributes').attr('value', BCJTEP.save('json'))
+ buildHiddenFormFromJSONEditor($(this));
});
$('form#edit_node, form#create_node').submit(function(event) {
var form = $(this);
var to_node = $('ul#for_node').sortable('toArray');