Add tooltip to explain why Advanced Edit button is disabled. b=161113. r=brade, sr=alecf

This commit is contained in:
cmanske%netscape.com 2002-08-09 02:03:53 +00:00
Родитель 3169e33d56
Коммит 7f810500c5
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -165,6 +165,7 @@ MissingPublishSiteError=No publishing site information given. Switching to Setti
#LOCALIZATION NOTE (DuplicateSiteNameError): Don't translate %name%
DuplicateSiteNameError="%name%" already exists. Please enter a different site name.
AdvancedProperties=Advanced Properties...
AdvancedEditForCellMsg=Advanced Edit is unavailable when multiple cells are selected
# LOCALIZATION NOTE (ObjectProperties):Don't translate "%obj%" it will be replaced with one of above object nouns
ObjectProperties=%obj% Properties...
# LOCALIZATION NOTE This character must be in the above string and not confict with other accesskeys in Format menu

Просмотреть файл

@ -718,7 +718,11 @@ function DoCellSelection()
// Currently, we can only allow advanced editing on ONE cell element at a time
// else we ignore CSS, JS, and HTML attributes not already in dialog
SetElementEnabledById("AdvancedEditButton2", gSelectedCellCount == 1);
SetElementEnabled(gDialog.AdvancedEditCell, gSelectedCellCount == 1);
gDialog.AdvancedEditCell.setAttribute("tooltiptext",
gSelectedCellCount > 1 ? GetString("AdvancedEditForCellMsg") :
gDialog.AdvancedEditCellToolTipText);
}
function SetSelectionButtons()