1
0

Updated Measurement to reflect ReadoutValue removal

This commit is contained in:
cryptogopher
2019-11-30 01:01:43 +01:00
parent d74f290a4f
commit fc2db76a3e
8 changed files with 50 additions and 40 deletions

View File

@@ -67,7 +67,7 @@
function deleteNutrient() {
var row = $(event.target).closest('p.nutrient');
row.find('[id$=_destroy]').val(1);
// FIXME: should only hide() row if record already saved (to send _destroy to backend)
// FIXME: should only hide() row if record already saved (to send _destroy to backend)
row.remove();
$('p.nutrient:visible:first label:first').text('<%= t "field_nutrients" %>');
if ($('p.nutrient:visible').length <= 1) {