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:
pkasting%google.com 2006-08-18 21:25:34 +00:00
Родитель 0e89419b50
Коммит 20aa0646b8
3 изменённых файлов: 20 добавлений и 7 удалений

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

@ -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="&copyLinkCmd.label;" accesskey="&copyLinkCmd.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="&copyLinkCmd.label;" accesskey="&copyLinkCmd.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">