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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user