From cae627c921744af9834297100b919f36205fa7be Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Wed, 18 Aug 2004 21:38:27 +0000 Subject: [PATCH] Bug #256058 --> when editing an existing feed disable the RSS account option so you can't select it as a destination folder. --- mail/extensions/newsblog/content/feed-properties.js | 4 ++++ mail/extensions/newsblog/content/feed-properties.xul | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mail/extensions/newsblog/content/feed-properties.js b/mail/extensions/newsblog/content/feed-properties.js index f44186b3ab3..92152454dbd 100644 --- a/mail/extensions/newsblog/content/feed-properties.js +++ b/mail/extensions/newsblog/content/feed-properties.js @@ -46,6 +46,10 @@ function onLoad() // set quick mode value document.getElementById('quickMode').checked = window.arguments[0].quickMode; + + // if we are editing an existing feed, disable the top level account + if (window.arguments[0].folderURI) + document.getElementById('rssAccountMenuItem').setAttribute('disabled', 'true'); } function onOk() diff --git a/mail/extensions/newsblog/content/feed-properties.xul b/mail/extensions/newsblog/content/feed-properties.xul index b4606587acb..dce27eea51b 100644 --- a/mail/extensions/newsblog/content/feed-properties.xul +++ b/mail/extensions/newsblog/content/feed-properties.xul @@ -40,7 +40,7 @@ xmlns:nc="http://home.netscape.com/NC-rdf#" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" title="&window.title;" - style="width: 27em;" + style="width: 30em;" buttons="accept,cancel" onload="onLoad();" ondialogaccept="return onOk();">