]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1387106 - UI tweaks and ideas
authorSebastin Santy <sebastinssanty@gmail.com>
Tue, 15 Aug 2017 02:00:44 +0000 (07:30 +0530)
committerDylan William Hardison <dylan@hardison.net>
Tue, 15 Aug 2017 02:00:44 +0000 (22:00 -0400)
extensions/BugModal/template/en/default/bug_modal/common_new_comment.html.tmpl
extensions/BugModal/web/new_bug.js
template/en/default/bug/new_bug.html.tmpl

index 184310277efa0763d2ef64d9b5ff63b66c4a03ee..80c42623bc2148a9470c16653c8cb857655bb3f7 100644 (file)
@@ -32,7 +32,7 @@
 
   <ul id="comment-tabs" role="tablist">
     <li id="comment-edit-tab" data-focus="comment" role="tab" tabindex="0" aria-controls="comment-edit-tabpanel" aria-selected="true">
-      Add Comment
+      Add Description
     </li>
     [%~ ~%]
     <li id="comment-preview-tab" role="tab" tabindex="-1" aria-controls="comment-preview-tabpanel" aria-selected="false">
index 32dbe4783df33a68a85eae6ec2754ec96c15b3e4..87a43eee750bcb76ab0a39a724775bf45f975b8b 100644 (file)
@@ -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();
 });
index a8d51414251fbe79aa23d58b44d622890537ac4c..7608d156bffba85c108397c7e8b245aa50869940 100644 (file)
               editable = 1
             %]
           [% END %]
-          [% WRAPPER bug_modal/module.html.tmpl title = "Labels" %]
+          [% WRAPPER bug_modal/module.html.tmpl title = "Tracking" %]
             [%# keywords %]
             [% INCLUDE bug_modal/field.html.tmpl
                 field = bug_fields.keywords