зеркало из https://github.com/mozilla/pjs.git
Bug 289136: remove lock/unlock pref menu items from about:config, r=mconnor
This commit is contained in:
Родитель
7ca2131e66
Коммит
e8fc7b897d
|
@ -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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче