X-Git-Url: https://git.ktnx.net/?p=icedeb.git;a=blobdiff_plain;f=chrome%2Fcontent%2Ficedeb.js;h=236112a0e51589694d39d41135725b452adefb8f;hp=9c393462bca055985bcc77c96c320bd50705dafb;hb=da549daa0245fd1e8f4fc55ab22583780d218253;hpb=66c3339778eb6aeb856ae2516c9726b8cf6bdfae diff --git a/chrome/content/icedeb.js b/chrome/content/icedeb.js index 9c39346..236112a 100644 --- a/chrome/content/icedeb.js +++ b/chrome/content/icedeb.js @@ -99,6 +99,21 @@ IceDeb = { loadURI(uri); } }, + lookup_ddpo: function(in_new) { + var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText()); + var uri="http://qa.debian.org/developer.php"; + + if (keyword) uri += "?login=" + 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 ) @@ -123,6 +138,12 @@ IceDeb = { IceDeb.lookup_ml(false) else if ( e.button == 1 ) IceDeb.lookup_ml(true); + }, + ddpoButton: function (e) { + if ( e.button == 0 ) + IceDeb.lookup_ddpo(false) + else if ( e.button == 1 ) + IceDeb.lookup_ddpo(true); } }