]> git.ktnx.net Git - icedeb.git/blobdiff - chrome/content/icedeb.js
add security-tracker button
[icedeb.git] / chrome / content / icedeb.js
index 742ca822dafc54c2a1631d55472f31e55995218b..e6c7adbcc2f0b3d4d487cb5ff04a607c5701e20b 100644 (file)
@@ -129,6 +129,21 @@ IceDeb = {
             loadURI(uri);
         }
     },
+    lookup_security: function(in_new) {
+        var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText());
+        var uri="http://security-tracker.debian.org/";
+
+        if (keyword) uri += "tracker/" + keyword;
+
+        if (in_new) {
+            var b = getBrowser();
+            var new_tab = b.addTab(uri);
+            b.selectedTab = new_tab;
+        }
+        else {
+            loadURI(uri);
+        }
+    },
 
     btsButton: function (e) {
         if ( e.button == 0 )
@@ -165,6 +180,12 @@ IceDeb = {
             IceDeb.lookup_buildd(false)
         else if ( e.button == 1 )
             IceDeb.lookup_buildd(true);
+    },
+    securityButton: function (e) {
+        if ( e.button == 0 )
+            IceDeb.lookup_security(false)
+        else if ( e.button == 1 )
+            IceDeb.lookup_security(true);
     }
 }