Permalink
Browse files

Some minor bugs fixed.

  • Loading branch information...
1 parent e3fc1d1 commit 076bd67b2905f10058565b1210a344a298f9f5a9 Romel Torres committed May 24, 2012
Showing with 5 additions and 0 deletions.
  1. +4 −0 server/server.rb
  2. +1 −0 server/views/admin_database.rhtml
View
@@ -357,6 +357,8 @@
results_designs = Result.get(erase_id).design_results
results_designs.each {|results_design|
results_designs.test_vector_results.destroy
+ results_designs.frequency_measurements.destroy
+ results_designs.adc_measurements.destroy
}
Result.get(erase_id).design_results.destroy
Result.get(erase_id).destroy
@@ -373,6 +375,8 @@
params['erase_design'].each {|erase_id|
#@ Results.all(:id => erase_id).
DesignResult.get(erase_id).test_vector_results.destroy
+ DesignResult.get(erase_id).frequency_measurements.destroy
+ DesignResult.get(erase_id).adc_measurements.destroy
DesignResult.get(erase_id).destroy
}
flash[:notice] = "The data has been erased successfully!"
@@ -92,6 +92,7 @@ function toggle(source,name) {
<form method="post" action="/manage_test_result">
<table class="fullwidth">
<tr>
+ <th><input type="checkbox" onClick="toggle(this,'erase_test_result[]')"/></th>
<th>Type</th>
<th>Input Vector</th>
<th>Expected Result</th>

0 comments on commit 076bd67

Please sign in to comment.