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();">
+
+
-
+
@@ -64,11 +68,10 @@
-
-
+
-
-
+
+
diff --git a/mail/extensions/newsblog/content/feed-subscriptions.js b/mail/extensions/newsblog/content/feed-subscriptions.js
index 47a4a54599d2..0ed614697f91 100644
--- a/mail/extensions/newsblog/content/feed-subscriptions.js
+++ b/mail/extensions/newsblog/content/feed-subscriptions.js
@@ -303,6 +303,11 @@ var gFeedSubscriptionsWindow = {
{
var item = this.getItemAtIndex(aIndex);
if (!item) return;
+
+ // save off the current selection item
+ var seln = this.selection;
+ var currentSelectionIndex = seln.currentIndex;
+
var multiplier = item.open ? -1 : 1;
var delta = multiplier * item.children.length;
this.mRowCount += delta;
@@ -316,6 +321,10 @@ var gFeedSubscriptionsWindow = {
// add or remove the children from our view
item.open = !item.open;
gFeedSubscriptionsWindow.mTree.treeBoxObject.rowCountChanged(aIndex, delta);
+
+ // now restore selection
+ seln.select(currentSelectionIndex);
+
},
cycleHeader: function (aColumn) {},
selectionChanged: function () {},
diff --git a/mail/locales/en-US/chrome/messenger-newsblog/feed-properties.dtd b/mail/locales/en-US/chrome/messenger-newsblog/feed-properties.dtd
index d14d03effc39..47142752eb45 100644
--- a/mail/locales/en-US/chrome/messenger-newsblog/feed-properties.dtd
+++ b/mail/locales/en-US/chrome/messenger-newsblog/feed-properties.dtd
@@ -1,14 +1,16 @@
-
+
-
-
+
+
-
-
+
+
-
+
-
-
+
+
+
+