More editor UI bug fixes: 47653, 47688, 47693, 47687. r=sfraser

git-svn-id: svn://10.0.0.236/trunk@76083 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cmanske%netscape.com
2000-08-11 03:20:47 +00:00
parent 0a53eb51a1
commit 28dc46ae74
21 changed files with 167 additions and 185 deletions

View File

@@ -76,10 +76,10 @@ function Startup()
dialog.widthPixelOrPercentMenulist.selectedIndex = 1;
}
dialog.rowsInput.focus();
// Resize window
window.sizeToContent();
SetTextfieldFocus(dialog.rowsInput);
}
// Set dialog widgets with attribute data
@@ -95,6 +95,19 @@ function InitDialog()
dialog.borderInput.value = globalElement.getAttribute("border");
}
function ChangeRowOrColumn(id)
{
// Allow only integers
forceInteger(id);
// Enable OK only if both rows and columns have a value > 0
SetElementEnabledById("ok", dialog.rowsInput.value.length > 0 &&
dialog.rowsInput.value > 0 &&
dialog.columnsInput.value.length > 0 &&
dialog.columnsInput.value > 0);
}
// Get and validate data from widgets.
// Set attributes on globalElement so they can be accessed by AdvancedEdit()
function ValidateData()