diff options
author | Byron Jones <glob@mozilla.com> | 2015-05-04 17:35:53 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-05-04 17:35:53 +0200 |
commit | 5ff4a99bb9f9547f92a53b87489237464d7b4962 (patch) | |
tree | eb4732df158c910f252ae260af9382246d32beaf /extensions/MozReview/web | |
parent | 4d442598cd891fdf45b0ac25a7757f8494bbfcbb (diff) | |
download | bugzilla-5ff4a99bb9f9547f92a53b87489237464d7b4962.tar.gz bugzilla-5ff4a99bb9f9547f92a53b87489237464d7b4962.tar.xz |
Bug 1153100: add mozreview's table to bug-modal
Diffstat (limited to 'extensions/MozReview/web')
-rw-r--r-- | extensions/MozReview/web/js/mozreview.js | 6 | ||||
-rw-r--r-- | extensions/MozReview/web/style/mozreview.css | 23 |
2 files changed, 26 insertions, 3 deletions
diff --git a/extensions/MozReview/web/js/mozreview.js b/extensions/MozReview/web/js/mozreview.js index 714863a74..2d5fdb0fa 100644 --- a/extensions/MozReview/web/js/mozreview.js +++ b/extensions/MozReview/web/js/mozreview.js @@ -46,7 +46,7 @@ MozReview.elapsedTime = function(d) { }; MozReview.getReviewRequest = function() { - var hostUrl = $('.mozreview-table').data('mozreviewUrl'); + var hostUrl = $('.mozreview-requests').data('mozreviewUrl'); var tr = $('<tr/>'); var td = $('<td/>'); @@ -93,7 +93,8 @@ MozReview.getReviewRequest = function() { return trCommit; } - $('.mozreview-hide-discarded-link').click(function() { + $('.mozreview-hide-discarded-link').click(function(event) { + event.preventDefault(); if ($('.bz_default_hidden.mozreview-discarded-request').length) { $('.mozreview-discarded-request').removeClass('bz_default_hidden'); $('.mozreview-discarded-action').text('Hide'); @@ -101,7 +102,6 @@ MozReview.getReviewRequest = function() { $('.mozreview-discarded-request').addClass('bz_default_hidden'); $('.mozreview-discarded-action').text('Show'); } - return false; }); $('.mozreview-request').each(function() { diff --git a/extensions/MozReview/web/style/mozreview.css b/extensions/MozReview/web/style/mozreview.css index 5c021ea96..8efea8950 100644 --- a/extensions/MozReview/web/style/mozreview.css +++ b/extensions/MozReview/web/style/mozreview.css @@ -52,3 +52,26 @@ .mozreview-child-request-summary { text-indent: 1em; } + +/* bug-modal specific */ + +#module-mozreview-requests .module-content { + padding: 0; +} + +.bug_modal .mozreview-table { + width: 100%; +} + +.bug_modal .mozreview-request td { + padding-left: 8px; +} + +.bug_modal .mozreview-requests th { + text-align: left; + padding-left: 8px; +} + +.bug_modal .mozreview-hide-discarded-row { + padding: 4px; +} |