From 1a35dbbc73f74efa955227a04acf74c465bd1e49 Mon Sep 17 00:00:00 2001 From: Sebastin Santy Date: Tue, 15 Aug 2017 07:30:44 +0530 Subject: Bug 1387106 - UI tweaks and ideas --- extensions/BugModal/web/new_bug.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'extensions/BugModal/web/new_bug.js') 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(); }); -- cgit v1.2.3-24-g4f1b