Bug fix: #4384 Incorrect "Rows" total shown when truncating or dropping a table on DB Structure page.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
This commit is contained in:
Ashutosh Dhundhara 2014-05-05 11:44:14 +05:30
parent 519cdacf50
commit a0667f85fa

View File

@ -64,8 +64,8 @@ function PMA_adjustTotals() {
// If the value is approximated
if (strRows.indexOf('~') === 0) {
rowSumApproximated = true;
// The approximated value contains a preceding ~ and a following 2 (Eg 100 --> ~1002)
strRows = strRows.substring(1, strRows.length - 1);
// The approximated value contains a preceding ~ (Eg 100 --> ~100)
strRows = strRows.substring(1, strRows.length);
}
strRows = strRows.replace(/[,.]/g, '');
var intRow = parseInt(strRows, 10);