]> git.donarmstrong.com Git - debbugs.git/commitdiff
Allow clicking anywhere outside the extra status box to close the
authorDon Armstrong <don@donarmstrong.com>
Wed, 24 Sep 2008 15:35:22 +0000 (08:35 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 24 Sep 2008 15:35:22 +0000 (08:35 -0700)
extra status box (closes: #499990) Thanks to James Vega for the patch.

cgi/pkgreport.cgi
debian/changelog
html/bugs.css
templates/en_US/cgi/pkgreport_javascript.tmpl

index 800c4715e83f29d68e03f3843c4c73f199ab44f7..2a69dfd1497713f05f4fa327173e186561fcb1ff 100755 (executable)
@@ -441,6 +441,7 @@ print "<HTML><HEAD>\n" .
     "</HEAD>\n" .
     '<BODY onload="pagemain();">' .
     "\n";
+print qq(<DIV id="status_mask"></DIV>\n);
 print "<H1>" . "$gProject$Archived $gBug report logs: $title" .
       "</H1>\n";
 
index 2982cfeb9060b5906bfe3d17b05ac2bfbb890616..f4ddd6bd6006a4634510693fb138af11db0cab66 100644 (file)
@@ -220,6 +220,8 @@ debbugs (2.4.2) UNRELEASED; urgency=low
   * Link to packages in bugreport page (closes: #229067)
   * Totally revamp the pkgreport templates (closes: #434504)
   * Add correspondent option to track bug correpondents (closes: #485804)
+  * Allow clicking anywhere outside the extra status box to close the
+    extra status box (closes: #499990) Thanks to James Vega for the patch.
 
   
  -- Colin Watson <cjwatson@debian.org>  Fri, 20 Jun 2003 18:57:25 +0100
index 2a320f4b406620af184fe3a7ae2e8677e37a76ef..b61e5b140fdb96fb113fb2975ed559aeee4616af 100644 (file)
@@ -252,6 +252,19 @@ li {
   display: inline;
   }
 
+#status_mask {
+    -moz-opacity: 0;
+    opacity: 0;
+    filter: alpha(opacity=0);
+    z-index: 1;
+    position: absolute;
+    width: 100%;
+    height: 100%;
+    top: 0px;
+    left: 0px;
+    display: none;
+}
+
 .bugs li {
     margin-top: 5px;
 }
index f801df9632ef6de8922b9e2657304cde146bd3f4..a786cbfcd90df4cbd4130110723c27290ff9d719 100644 (file)
@@ -26,7 +26,7 @@ function toggle_extra_status_visible() \{
         else \{
            all_divs[i].style.position = "absolute";
            all_divs[i].style.display = "none"
-           all_divs[i].style.zIndex = 1;
+           all_divs[i].style.zIndex = 2;
            all_divs[i].style.border = "#000 1px solid";
            var subspans = all_divs[i].getElementsByTagName("span");
            for (var j = 0; j < subspans.length; j++) \{
@@ -38,9 +38,13 @@ function toggle_extra_status_visible() \{
 \}
 
 function extra_status_visible(id) \{
+  var m = document.getElementById("status_mask");
   if (visible_extra_status) \{
      var t = document.getElementById("extra_status_"+visible_extra_status);
      t.style.display = "none";
+     if (m) \{
+        m.style.display = "none";
+     \}
      if (visible_extra_status == id) \{
        visible_extra_status = 0;
         return;
@@ -51,6 +55,10 @@ function extra_status_visible(id) \{
   if (e) \{
      e.style.display = "block";
      visible_extra_status = id;
+     if (m) \{
+        m.onclick = function() \{ extra_status_visible(id); \};
+        m.style.display = "block";
+     \}
   \}
 \}