Fixed busted Table Props dialog, b=97140, r=brade, sr=kin, a=asa
This commit is contained in:
Родитель
48aeb47819
Коммит
93cd5ee10b
|
@ -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,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче