Initialize variable in case first loop fails.
This commit is contained in:
@@ -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.
|
//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 table_rows = table_body.getElementsByTagName("tr");
|
||||||
var j;
|
var j;
|
||||||
var index;
|
var index = 0;
|
||||||
for (j=0; j < table_rows.length; j++)
|
for (j=0; j < table_rows.length; j++)
|
||||||
{
|
{
|
||||||
if (table_rows[j].id == i) {
|
if (table_rows[j].id == i) {
|
||||||
|
Reference in New Issue
Block a user