summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web/new_bug.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BugModal/web/new_bug.js')
-rw-r--r--extensions/BugModal/web/new_bug.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/extensions/BugModal/web/new_bug.js b/extensions/BugModal/web/new_bug.js
index 32dbe4783..87a43eee7 100644
--- a/extensions/BugModal/web/new_bug.js
+++ b/extensions/BugModal/web/new_bug.js
@@ -121,5 +121,15 @@ $(document).ready(function() {
document.getElementById('reset').style.display = "none";
$("#description").prop('required',false);
});
-
+ $('#comment-edit-tab')
+ .click(function() {
+ $('#comment-preview-tab').css("background-color", "#fff");
+ $(this).css("background-color", "#eee");
+ });
+ $('#comment-preview-tab')
+ .click(function() {
+ $('#comment-edit-tab').css("background-color", "#fff");
+ $(this).css("background-color", "#eee");
+ });
+ $('#comment-edit-tab').click();
});