Bug 289136: remove lock/unlock pref menu items from about:config, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2007-05-22 19:48:05 +00:00
Родитель 7ca2131e66
Коммит e8fc7b897d
3 изменённых файлов: 0 добавлений и 22 удалений

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

@ -519,9 +519,6 @@ function updateContextMenu()
var toggleSelected = document.getElementById("toggleSelected");
toggleSelected.setAttribute("disabled", isLocked);
toggleSelected.hidden = !canToggle;
document.getElementById("lockSelected").hidden = !prefSelected || isLocked;
document.getElementById("unlockSelected").hidden = !prefSelected || !isLocked;
}
function copyPref()
@ -618,16 +615,3 @@ function ModifyPref(entry)
return true;
}
function LockSelected()
{
var entry = gPrefView[view.selection.currentIndex];
gPrefBranch.lockPref(entry.prefCol);
}
function UnlockSelected()
{
var entry = gPrefView[view.selection.currentIndex];
gPrefBranch.unlockPref(entry.prefCol);
}

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

@ -69,8 +69,6 @@
<menuitem id="toggleSelected" label="&toggle.label;" accesskey="&toggle.accesskey;" oncommand="ModifySelected();"/>
<menuitem id="modifySelected" label="&modify.label;" accesskey="&modify.accesskey;" oncommand="ModifySelected();"/>
<menuitem id="resetSelected" label="&reset.label;" accesskey="&reset.accesskey;" oncommand="ResetSelected();"/>
<menuitem id="lockSelected" label="&lock.label;" accesskey="&lock.accesskey;" oncommand="LockSelected();"/>
<menuitem id="unlockSelected" label="&unlock.label;" accesskey="&unlock.accesskey;" oncommand="UnlockSelected();"/>
</popup>
<keyset>

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

@ -78,7 +78,3 @@
<!ENTITY integer.accesskey "I">
<!ENTITY boolean.label "Boolean">
<!ENTITY boolean.accesskey "B">
<!ENTITY lock.label "Lock">
<!ENTITY lock.accesskey "L">
<!ENTITY unlock.label "Unlock">
<!ENTITY unlock.accesskey "U">