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