summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-08-07 07:18:30 +0200
committerByron Jones <glob@mozilla.com>2014-08-07 07:18:30 +0200
commitfc9e97d8241600a264b1eed5aedc75c2a978ca7d (patch)
treef0dccb557fdf3b4030067cd63f1234c56aebc79f
parentc57791dc825c0393c27b3ca3656d69f7253b86b7 (diff)
downloadbugzilla-fc9e97d8241600a264b1eed5aedc75c2a978ca7d.tar.gz
bugzilla-fc9e97d8241600a264b1eed5aedc75c2a978ca7d.tar.xz
add due_date to bmo product, fix calendar position with mozilla skin
-rw-r--r--extensions/BMO/lib/Data.pm79
-rw-r--r--js/util.js7
2 files changed, 45 insertions, 41 deletions
diff --git a/extensions/BMO/lib/Data.pm b/extensions/BMO/lib/Data.pm
index a230b7e19..e641e2828 100644
--- a/extensions/BMO/lib/Data.pm
+++ b/extensions/BMO/lib/Data.pm
@@ -36,7 +36,7 @@ use constant RB_REQUEST_CONTENT_TYPE => 'text/x-review-board-request';
our $cf_visible_in_products;
tie(%$cf_visible_in_products, "Tie::IxHash",
qr/^cf_colo_site$/ => {
- "mozilla.org" => [
+ "mozilla.org" => [
"Server Operations",
"Server Operations: DCOps",
"Server Operations: Projects",
@@ -49,53 +49,54 @@ tie(%$cf_visible_in_products, "Tie::IxHash",
],
},
qw/^cf_office$/ => {
- "mozilla.org" => ["Server Operations: Desktop Issues"],
+ "mozilla.org" => ["Server Operations: Desktop Issues"],
},
qr/^cf_crash_signature$/ => {
- "Add-on SDK" => [],
+ "Add-on SDK" => [],
+ "addons.mozilla.org" => [],
"Android Background Services" => [],
- "addons.mozilla.org" => [],
- "Firefox OS" => [],
- "Calendar" => [],
- "Camino" => [],
- "Composer" => [],
- "Core" => [],
- "Directory" => [],
- "Fennec" => [],
- "Firefox" => [],
- "Firefox for Android" => [],
- "Firefox for Metro" => [],
- "JSS" => [],
- "MailNews Core" => [],
- "Mozilla Labs" => [],
- "Mozilla Localizations" => [],
- "mozilla.org" => [],
- "Mozilla Services" => [],
- "NSPR" => [],
- "NSS" => [],
- "Other Applications" => [],
- "Penelope" => [],
- "Plugins" => [],
- "Release Engineering" => [],
- "Rhino" => [],
- "SeaMonkey" => [],
- "Tamarin" => [],
- "Tech Evangelism" => [],
- "Testing" => [],
- "Thunderbird" => [],
- "Toolkit" => [],
+ "Calendar" => [],
+ "Camino" => [],
+ "Composer" => [],
+ "Core" => [],
+ "Directory" => [],
+ "Fennec" => [],
+ "Firefox" => [],
+ "Firefox for Android" => [],
+ "Firefox for Metro" => [],
+ "Firefox OS" => [],
+ "JSS" => [],
+ "MailNews Core" => [],
+ "Mozilla Labs" => [],
+ "Mozilla Localizations" => [],
+ "mozilla.org" => [],
+ "Mozilla Services" => [],
+ "NSPR" => [],
+ "NSS" => [],
+ "Other Applications" => [],
+ "Penelope" => [],
+ "Plugins" => [],
+ "Release Engineering" => [],
+ "Rhino" => [],
+ "SeaMonkey" => [],
+ "Tamarin" => [],
+ "Tech Evangelism" => [],
+ "Testing" => [],
+ "Thunderbird" => [],
+ "Toolkit" => [],
},
qw/^cf_due_date$/ => {
- "Data & BI Services Team" => [],
- "Developer Engagement" => [],
+ "bugzilla.mozilla.org" => [],
+ "Data & BI Services Team" => [],
+ "Developer Engagement" => [],
"Infrastructure & Operations" => [],
- "Marketing" => [],
- "mozilla.org" => ["Security Assurance: Review Request"],
- "Mozilla Reps" => [],
+ "Marketing" => [],
+ "mozilla.org" => ["Security Assurance: Review Request"],
+ "Mozilla Reps" => [],
},
qw/^cf_locale$/ => {
- "www.mozilla.org" => [],
"Mozilla Localizations" => ['Other'],
+ "www.mozilla.org" => [],
},
qw/^cf_mozilla_project$/ => {
"Data & BI Services Team" => [],
diff --git a/js/util.js b/js/util.js
index cc4a87081..78b64b516 100644
--- a/js/util.js
+++ b/js/util.js
@@ -37,7 +37,8 @@ function bz_findPosX(obj)
if (obj.offsetParent) {
while (obj) {
- curleft += obj.offsetLeft;
+ if (getComputedStyle(obj).position != 'relative')
+ curleft += obj.offsetLeft;
obj = obj.offsetParent;
}
}
@@ -61,7 +62,8 @@ function bz_findPosY(obj)
if (obj.offsetParent) {
while (obj) {
- curtop += obj.offsetTop;
+ if (getComputedStyle(obj).position != 'relative')
+ curtop += obj.offsetTop;
obj = obj.offsetParent;
}
}
@@ -132,6 +134,7 @@ function bz_overlayBelow(item, parent) {
item.style.position = 'absolute';
item.style.left = elemX + "px";
item.style.top = elemY + elemH + 1 + "px";
+ item.style.zIndex = 999;
}
/**