Skip to content

Commit

Permalink
fixes #10964 - [js] search env_id by name attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomizadok authored and Dominic Cleal committed Jul 2, 2015
1 parent ad00a10 commit 55fd94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ $(function() {

function update_puppetclasses(element) {
var host_id = $("form").data('id')
var env_id = $('*[id*=environment_id]').val();
var env_id = $('select[name*=environment_id]').val();
var url = $(element).attr('data-url');
var data = $("form").serialize().replace('method=put', 'method=post');
if (url.match('hostgroups')) {
Expand Down

0 comments on commit 55fd94a

Please sign in to comment.