From 4581e53735ac67e609ac4f4ff06db25e4b70849d Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sat, 17 Sep 2011 21:57:10 +0530 Subject: [PATCH] bug #3410984 - Zoom search, checkboxes and fields not being reset --- js/tbl_zoom_plot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/tbl_zoom_plot.js b/js/tbl_zoom_plot.js index 788ca6396c..df73c3c60f 100644 --- a/js/tbl_zoom_plot.js +++ b/js/tbl_zoom_plot.js @@ -469,10 +469,12 @@ $(document).ready(function() { }; $.post('tbl_zoom_select.php', post_params, function(data) { // Row is contained in data.row_info, now fill the displayResultForm with row values - for ( key in data.row_info) { + for (key in data.row_info) { if (data.row_info[key] == null) { $('#fields_null_id_' + fid).attr('checked', true); + $('#fieldID_' + fid).val(''); } else { + $('#fields_null_id_' + fid).attr('checked', false); $('#fieldID_' + fid).val(data.row_info[key]); } fid++;