From fc9e97d8241600a264b1eed5aedc75c2a978ca7d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 7 Aug 2014 13:18:30 +0800 Subject: add due_date to bmo product, fix calendar position with mozilla skin --- extensions/BMO/lib/Data.pm | 79 +++++++++++++++++++++++----------------------- js/util.js | 7 ++-- 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; } /** -- cgit v1.2.3-24-g4f1b