diff --git a/mail/extensions/newsblog/content/feed-properties.js b/mail/extensions/newsblog/content/feed-properties.js index 40aea22dcefb..7ac585b76845 100644 --- a/mail/extensions/newsblog/content/feed-properties.js +++ b/mail/extensions/newsblog/content/feed-properties.js @@ -60,7 +60,7 @@ function onLoad() { // if we are editing an existing feed, disable the top level account rssAccountMenuItem.setAttribute('disabled', 'true'); - feedLocationEl.disabled = true; + feedLocationEl.setAttribute('readonly', true); } } @@ -94,3 +94,17 @@ function SetFolderPicker(uri,pickerID) picker.setAttribute("label",msgfolder.name); picker.setAttribute("uri",uri); } + +// CopyWebsiteAddress takes the website address title button, extracts +// the website address we stored in there and copies it to the clipboard +function CopyWebsiteAddress(websiteAddressNode) +{ + if (websiteAddressNode) + { + var websiteAddress = websiteAddressNode.value; + var contractid = "@mozilla.org/widget/clipboardhelper;1"; + var iid = Components.interfaces.nsIClipboardHelper; + var clipboard = Components.classes[contractid].getService(iid); + clipboard.copyString(websiteAddress); + } +} diff --git a/mail/extensions/newsblog/content/feed-properties.xul b/mail/extensions/newsblog/content/feed-properties.xul index 1c2cf5452e53..37a07a5e815b 100644 --- a/mail/extensions/newsblog/content/feed-properties.xul +++ b/mail/extensions/newsblog/content/feed-properties.xul @@ -49,14 +49,18 @@ #ifdef XP_MACOSX style="width: 40em;" #else - style="width: 30em;" + style="width: 33em;" #endif buttons="accept,cancel" onload="onLoad();" ondialogaccept="return onOk();"> + + + +