From 6d05e375e8645cb53293ba53fe8d48c96e38f3e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 12 Apr 2010 16:56:13 +0200 Subject: [PATCH] Initialize variable in case first loop fails. --- js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index 24fd06643..2f159159b 100644 --- a/js/functions.js +++ b/js/functions.js @@ -465,7 +465,7 @@ function showDetails(i, update_size, insert_size, remove_size, insert_index, rem //The case when the row showing the details need to be removed from the table i.e. the difference button is deselected now. var table_rows = table_body.getElementsByTagName("tr"); var j; - var index; + var index = 0; for (j=0; j < table_rows.length; j++) { if (table_rows[j].id == i) {