Skip to content

Commit

Permalink
[webui]Fixed exception in patchinfo-editor
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrunner committed Dec 1, 2011
1 parent f7669a1 commit b38ffc5
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/webui/app/views/patchinfo/new_patchinfo.html.erb
Expand Up @@ -76,20 +76,11 @@

$(document).ready(function(){

var selected_start = $("#category option:selected");
if(selected_start.val() != "security"){
$("#CVE").hide();
$("#CVEID").hide();
}
else
{ $("#CVE").show();
$("#CVEID").show();
}

$("#category").change(onSelectChange);

});
function onSelectChange(){
function onSelectChange(){
var project = $("#project").val();
var selected = $("#category option:selected");
if(selected.val() != "security"){
$("#CVEID").hide();
Expand Down Expand Up @@ -185,7 +176,5 @@
</td></tr>
</table>
<%= hidden_field_tag("project", @project.name)%>
<%= observe_field( :category, :frequency => 0.5, :on => :selected,
:update => :cve )%>
</div>
<% end %>

0 comments on commit b38ffc5

Please sign in to comment.