зеркало из https://github.com/mozilla/pjs.git
Bug 296542: Feed Properties dialog has no paste context menu
Patch by Magnus Melin (mkmelin+mozilla@iki.fi) r+sr=mscott
This commit is contained in:
Родитель
0e89419b50
Коммит
20aa0646b8
|
@ -61,7 +61,10 @@ function onLoad()
|
|||
// if we are editing an existing feed, disable the top level account
|
||||
rssAccountMenuItem.setAttribute('disabled', 'true');
|
||||
feedLocationEl.setAttribute('readonly', true);
|
||||
feedLocationEl.setAttribute('context', 'copyUrlPopup');
|
||||
}
|
||||
else
|
||||
feedLocationEl.setAttribute('context', 'pasteUrlPopup');
|
||||
}
|
||||
|
||||
function onOk()
|
||||
|
|
|
@ -55,12 +55,19 @@
|
|||
onload="onLoad();"
|
||||
ondialogaccept="return onOk();">
|
||||
|
||||
<popup id="copyUrlPopup" popupanchor="bottomleft">
|
||||
<menuitem label="©LinkCmd.label;" accesskey="©LinkCmd.accesskey;" oncommand="CopyWebsiteAddress(document.popupNode)"/>
|
||||
</popup>
|
||||
|
||||
<script type="application/x-javascript" src="feed-properties.js"/>
|
||||
<script type="application/x-javascript" src="chrome://messenger/content/widgetglue.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
|
||||
|
||||
<popup id="copyUrlPopup" popupanchor="bottomleft">
|
||||
<menuitem label="©LinkCmd.label;" accesskey="©LinkCmd.accesskey;"
|
||||
oncommand="CopyWebsiteAddress(document.popupNode)"/>
|
||||
</popup>
|
||||
|
||||
<popup id="pasteUrlPopup" popupanchor="bottomleft">
|
||||
<menuitem label="&pasteLinkCmd.label;" accesskey="&pasteLinkCmd.accesskey;"
|
||||
oncommand="goDoCommand('cmd_paste')"/>
|
||||
</popup>
|
||||
|
||||
<grid flex="1">
|
||||
<columns>
|
||||
|
@ -71,7 +78,7 @@
|
|||
<rows>
|
||||
<row>
|
||||
<label value="&feedLocation.label;" accesskey="&feedLocation.accesskey;" control="feedLocation"/>
|
||||
<textbox id="feedLocation" context="copyUrlPopup"/>
|
||||
<textbox id="feedLocation"/>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
|
|
|
@ -12,5 +12,8 @@
|
|||
<!ENTITY quickMode.label "Show the article summary instead of loading the web page">
|
||||
<!ENTITY quickMode.accesskey "h">
|
||||
|
||||
<!ENTITY copyLinkCmd.label "Copy Link Location">
|
||||
<!ENTITY copyLinkCmd.accesskey "C">
|
||||
<!ENTITY copyLinkCmd.label "Copy Link Location">
|
||||
<!ENTITY copyLinkCmd.accesskey "C">
|
||||
|
||||
<!ENTITY pasteLinkCmd.label "Paste">
|
||||
<!ENTITY pasteLinkCmd.accesskey "P">
|
||||
|
|
Загрузка…
Ссылка в новой задаче