mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
Fixed error message when empty row or col input in Table Properties dialog, b=99306, r=akkana, sr=sfraser
This commit is contained in:
parent
0e7f7529b8
commit
088960db15
@ -134,7 +134,7 @@ function ValidateNumber(inputWidget, listWidget, minVal, maxVal, element, attNam
|
||||
var isPercent = false;
|
||||
|
||||
var numString = TrimString(inputWidget.value);
|
||||
if (numString)
|
||||
if (numString || mustHaveValue)
|
||||
{
|
||||
if (listWidget)
|
||||
isPercent = (listWidget.selectedIndex == 1);
|
||||
|
@ -789,10 +789,10 @@ function SetAlign(listID, defaultValue, element, attName)
|
||||
function ValidateTableData()
|
||||
{
|
||||
validatePanel = TablePanel;
|
||||
newRowCount = Number(ValidateNumber(gDialog.TableRowsInput, null, 1, maxRows, null, null, true));
|
||||
newRowCount = Number(ValidateNumber(gDialog.TableRowsInput, null, 1, maxRows, null, true, true));
|
||||
if (gValidationError) return false;
|
||||
|
||||
newColCount = Number(ValidateNumber(gDialog.TableColumnsInput, null, 1, maxColumns, null, null, true));
|
||||
newColCount = Number(ValidateNumber(gDialog.TableColumnsInput, null, 1, maxColumns, null, true, true));
|
||||
if (gValidationError) return false;
|
||||
|
||||
// If user is deleting any cells, get confirmation
|
||||
|
Loading…
x
Reference in New Issue
Block a user