]> git.wh0rd.org Git - tt-rss.git/commitdiff
quick unsubscribe prompt shows feed name
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 24 May 2006 03:15:04 +0000 (04:15 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 24 May 2006 03:15:04 +0000 (04:15 +0100)
functions.js
tt-rss.js

index e58a9703653bbe8e4c1d6800a822cf58fe81458a..f7e29888847cf84292fce92404c86b78b8fe2156 100644 (file)
@@ -1181,4 +1181,12 @@ function fatalError(code, message) {
        }
 }
 
-
+function getFeedName(id) {
+       var d = getFeedsContext().document;
+       var e = d.getElementById("FEEDN-" + id);
+       if (e) {
+               return e.innerHTML.stripTags();
+       } else {
+               return null;
+       }
+}
index 0b00737af290645d30b095b92b6a69b70dab218e..9e6d70c73bc629762883b4868aada98e20007e39 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -436,8 +436,10 @@ function quickMenuGo(opid) {
                                alert("Please select some feed first.");
                                return;
                        }
+
+                       var fn = getFeedName(actid);
        
-                       if (confirm("Unsubscribe from current feed?")) {
+                       if (confirm("Unsubscribe from " + fn + "?")) {
                                qfdDelete(actid);
                        }