You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by rj...@apache.org on 2014/01/23 02:46:25 UTC

svn commit: r1560569 - /bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html

Author: rjollos
Date: Thu Jan 23 01:46:25 2014
New Revision: 1560569

URL: http://svn.apache.org/r1560569
Log:
0.8dev: When at global scope, use the `[ticket] default product` as the default value. Refs #304.

Before this change, the product select would be set to the empty value and the //Create// button would be disabled until a product is selected. That behavior is preserved when `[ticket] default product` has not been set.

Modified:
    bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html?rev=1560569&r1=1560568&r2=1560569&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html Thu Jan 23 01:46:25 2014
@@ -57,7 +57,10 @@
     <script type="text/javascript" py:choose="">
       jQuery(document).ready(function($) {
         /* Affixed navbar */
-        $(".local-nav a").click(function() { $($(this).attr('href')).removeClass('collapsed').parent().removeClass("collapsed"); });
+        $(".local-nav a").click(function() {
+          $($(this).attr('href')).removeClass('collapsed')
+                                 .parent().removeClass("collapsed");
+        });
         $('.trac-nav').hide();
         $('.trac-topnav').hide();
 
@@ -124,8 +127,7 @@
 
           $('#inplace-edit, #vc-status a').hide();
           $('#edit-state-buttons, #edit-state-buttons-below, #edit-workflow-buttons, #edit-comment').show();
-          if (!newticket)
-          {
+          if (!newticket) {
             // disable input controls on all other forms when in modify mode
             $('.activityfeed, .relations, #attachments').css('opacity', '0.3');
             $('form:not("#inplace-propertyform") :input').attr('disabled', 'disabled');
@@ -161,8 +163,8 @@
 
         function install_workflow(){
           <py:if test="bhrelations">
-            var act = $('#action_resolve_resolve_resolution').parent();
-            act.append('<span id="duplicate_id" class="hide">Duplicate ID:&nbsp;<input name="duplicate_id" type="text" class="input-mini" value="${ticket_duplicate_of}"></input></span>');
+          var act = $('#action_resolve_resolve_resolution').parent();
+          act.append('<span id="duplicate_id" class="hide">Duplicate ID:&nbsp;<input name="duplicate_id" type="text" class="input-mini" value="${ticket_duplicate_of}"></input></span>');
           </py:if>
           var actions_box = $('#workflow-actions')
               .click(function(e) { e.stopPropagation(); });
@@ -183,15 +185,11 @@
                   newlabel = newlabel + ' as ' + $('#vc-status a').text();
                 else if (newowner)
                   newlabel = newlabel + ' to ' + newowner;
-                else if (newresolution)
-                {
+                else if (newresolution) {
                   newlabel = newlabel + ' as ' + newresolution;
-                  if (newresolution === 'duplicate')
-                  {
+                  if (newresolution === 'duplicate') {
                     $('#duplicate_id').show();
-                  }
-                  else
-                  {
+                  } else {
                     $('#duplicate_id').hide();
                   }
                 }