summaryrefslogtreecommitdiffstats
path: root/extensions/MozReview/web
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-05-04 17:35:53 +0200
committerByron Jones <glob@mozilla.com>2015-05-04 17:35:53 +0200
commit5ff4a99bb9f9547f92a53b87489237464d7b4962 (patch)
treeeb4732df158c910f252ae260af9382246d32beaf /extensions/MozReview/web
parent4d442598cd891fdf45b0ac25a7757f8494bbfcbb (diff)
downloadbugzilla-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.js6
-rw-r--r--extensions/MozReview/web/style/mozreview.css23
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;
+}