зеркало из https://github.com/mozilla/pjs.git
Bug 236666 Add context menu pref to Advanced Javascript Options, uses the wording from the suite bug, patch by pike@pikey.me.uk, r=me
This commit is contained in:
Родитель
329fa37aee
Коммит
9d0db94a8c
|
@ -47,15 +47,15 @@
|
|||
|
||||
<script type="application/x-javascript">
|
||||
<![CDATA[
|
||||
var elements = ["allowWindowMoveResize", "allowWindowFlip", "allowHideStatusBar",
|
||||
"allowWindowStatusChange", "allowImageSrcChange"];
|
||||
var elements = ["allowWindowMoveResize", "allowWindowFlip", "allowControlContextMenu",
|
||||
"allowHideStatusBar", "allowWindowStatusChange", "allowImageSrcChange"];
|
||||
|
||||
function onDialogLoad()
|
||||
{
|
||||
for (var i = 0; i < elements.length; ++i) {
|
||||
var prefElt = window.opener.document.getElementById(elements[i]);
|
||||
var checkbox = document.getElementById(elements[i]);
|
||||
checkbox.checked = !prefElt.checked;
|
||||
checkbox.checked = prefElt.checked;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@
|
|||
for (var i = 0; i < elements.length; ++i) {
|
||||
var prefElt = window.opener.document.getElementById(elements[i]);
|
||||
var checkbox = document.getElementById(elements[i]);
|
||||
prefElt.checked = !checkbox.checked;
|
||||
prefElt.checked = checkbox.checked;
|
||||
}
|
||||
}
|
||||
]]>
|
||||
|
@ -75,11 +75,10 @@
|
|||
<listbox flex="1" rows="6">
|
||||
<listitem type="checkbox" id="allowWindowMoveResize" label="&allowWindowMoveResize.label;"/>
|
||||
<listitem type="checkbox" id="allowWindowFlip" label="&allowWindowFlip.label;"/>
|
||||
<listitem type="checkbox" id="allowControlContextMenu" label="&allowControlContextMenu.label;"/>
|
||||
<listitem type="checkbox" id="allowHideStatusBar" label="&allowHideStatusBar.label;"/>
|
||||
<listitem type="checkbox" id="allowWindowStatusChange" label="&allowWindowStatusChange.label;"/>
|
||||
<listitem type="checkbox" id="allowImageSrcChange" label="&allowWindowImageSrcChange.label;"/>
|
||||
</listbox>
|
||||
|
||||
</dialog>
|
||||
|
||||
|
|
@ -35,8 +35,8 @@
|
|||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
var _elementIDs = ["advancedJavaAllow", "enableJavaScript", "enableImagePref",
|
||||
"popupPolicy", "allowWindowMoveResize", "allowWindowFlip", "allowHideStatusBar",
|
||||
"allowWindowStatusChange", "allowImageSrcChange"];
|
||||
"popupPolicy", "allowWindowMoveResize", "allowWindowFlip", "allowControlContextMenu",
|
||||
"allowHideStatusBar", "allowWindowStatusChange", "allowImageSrcChange"];
|
||||
var permType = "popup";
|
||||
var gImagesPref, gImagesEnabled, gImagesRestricted;
|
||||
|
||||
|
|
|
@ -93,11 +93,18 @@
|
|||
oncommand="javascriptEnabledChange();"/>
|
||||
<spring flex="1"/>
|
||||
|
||||
<checkbox id="allowWindowMoveResize" prefstring="dom.disable_window_move_resize" hidden="true"/>
|
||||
<checkbox id="allowWindowFlip" prefstring="dom.disable_window_flip" hidden="true"/>
|
||||
<checkbox id="allowHideStatusBar" prefstring="dom.disable_window_open_feature.status" hidden="true"/>
|
||||
<checkbox id="allowWindowStatusChange" prefstring="dom.disable_window_status_change" hidden="true"/>
|
||||
<checkbox id="allowImageSrcChange" prefstring="dom.disable_image_src_set" hidden="true"/>
|
||||
<checkbox id="allowWindowMoveResize" hidden="true"
|
||||
reversed="true" prefstring="dom.disable_window_move_resize"/>
|
||||
<checkbox id="allowWindowFlip" hidden="true"
|
||||
reversed="true" prefstring="dom.disable_window_flip"/>
|
||||
<checkbox id="allowControlContextMenu" hidden="true"
|
||||
prefstring="dom.event.contextmenu.enabled"/>
|
||||
<checkbox id="allowHideStatusBar" hidden="true"
|
||||
reversed="true" prefstring="dom.disable_window_open_feature.status"/>
|
||||
<checkbox id="allowWindowStatusChange" hidden="true"
|
||||
reversed="true" prefstring="dom.disable_window_status_change"/>
|
||||
<checkbox id="allowImageSrcChange" hidden="true"
|
||||
reversed="true" prefstring="dom.disable_image_src_set"/>
|
||||
|
||||
<button id="advancedJavascript" label="&advancedJavaScript.label;" accesskey="&advancedJavaScript.accesskey;"
|
||||
oncommand="advancedJavaScript();" class="uniWidthButton"/>
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
|
||||
<!ENTITY allowScripts.title "Advanced JavaScript Options">
|
||||
<!ENTITY allowScripts.label "Allow scripts to:">
|
||||
<!ENTITY allowWindowOpen.label "Open unrequested windows">
|
||||
<!ENTITY allowWindowMoveResize.label "Move or resize existing windows">
|
||||
<!ENTITY allowWindowFlip.label "Raise or lower windows">
|
||||
<!ENTITY allowWindowStatusChange.label "Change status bar text">
|
||||
<!ENTITY allowWindowImageSrcChange.label "Change images">
|
||||
<!ENTITY allowHideStatusBar.label "Hide the status bar">
|
Загрузка…
Ссылка в новой задаче