diff --git a/js/tbl_change.js b/js/tbl_change.js index a092171cd..17a4ba00c 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -358,9 +358,9 @@ $(document).ready(function() { //Insert/Clone the ignore checkboxes if(curr_rows == 1 ) { - $('') + $('') .insertBefore(".insertRowTable:last") - .after(''); + .after(''); } else { @@ -379,7 +379,7 @@ $(document).ready(function() { $(last_checkbox) .clone() .attr({'id':new_name, 'name': new_name}) - .add('label[for^=insert_ignore_check]:last') + .add('label[for^=insert_ignore]:last') .clone() .attr('for', new_name) .before('
') @@ -390,7 +390,7 @@ $(document).ready(function() { } else if( curr_rows > target_rows) { while(curr_rows > target_rows) { - $("input[id^=insert_ignore_check]:last") + $("input[id^=insert_ignore]:last") .nextUntil("fieldset") .andSelf() .remove(); @@ -398,4 +398,4 @@ $(document).ready(function() { } } }) -}, 'top.frame_content'); //end $(document).ready() \ No newline at end of file +}, 'top.frame_content'); //end $(document).ready() diff --git a/tbl_change.php b/tbl_change.php index eb38d6cfd..2e5d78b71 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -292,8 +292,8 @@ foreach ($rows as $row_id => $vrow) { $vresult = (isset($result) && is_array($result) && isset($result[$row_id]) ? $result[$row_id] : $result); if ($insert_mode && $row_id > 0) { - echo ''; - echo '
' . "\n"; + echo ''; + echo '
' . "\n"; } ?>