Fixed busted Table Props dialog, b=97140, r=brade, sr=kin, a=asa

This commit is contained in:
cmanske%netscape.com 2001-08-28 14:32:02 +00:00
Родитель 48aeb47819
Коммит 93cd5ee10b
1 изменённых файлов: 13 добавлений и 11 удалений

Просмотреть файл

@ -798,18 +798,20 @@ function ValidateTableData()
// If user is deleting any cells, get confirmation
// (This is a global to the dialog and we ask only once per dialog session)
if ( !canDelete &&
(newRowCount < rowCount ||
newColCount < colCount) &&
ConfirmWithTitle(GetString("DeleteTableTitle"),
GetString("DeleteTableMsg"),
GetString("DeleteCells")) )
(newRowCount < rowCount ||
newColCount < colCount) )
{
canDelete = true;
}
else
{
SetTextboxFocus(newRowCount < rowCount ? dialog.TableRowsInput : dialog.TableColumnsInput);
return false;
if (ConfirmWithTitle(GetString("DeleteTableTitle"),
GetString("DeleteTableMsg"),
GetString("DeleteCells")) )
{
canDelete = true;
}
else
{
SetTextboxFocus(newRowCount < rowCount ? dialog.TableRowsInput : dialog.TableColumnsInput);
return false;
}
}
ValidateNumber(dialog.TableWidthInput, dialog.TableWidthUnits,