incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1431128 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
Date Wed, 09 Jan 2013 22:51:45 GMT
Author: gjm
Date: Wed Jan  9 22:51:45 2013
New Revision: 1431128

URL: http://svn.apache.org/viewvc?rev=1431128&view=rev
Log:
allow modify ticket state to submit comment along with other state changes, disabling comment
only submission - towards #345

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

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html?rev=1431128&r1=1431127&r2=1431128&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html Wed Jan 
9 22:51:45 2013
@@ -55,7 +55,10 @@
         // Install in place editing
 
         var modify_elem = $('#modify');
-        <py:if test="ticket.exists">modify_elem.parent().hide();</py:if>
+        <py:if test="ticket.exists">
+          modify_elem.parent().hide();
+          $('#propertyform .buttons').hide();
+        </py:if>
   
         function modify_ticket() {
           if ($('#vc-summary').is('.edit-active'))
@@ -118,8 +121,11 @@
             });
 
           // Enable automatic preview
-          $('#inplace-propertyform').autoSubmit({preview : 1}, 
-              full_preview, '#overview .trac-loading')
+          //$('#inplace-propertyform').autoSubmit({preview : 1}, 
+          //    full_preview, '#overview .trac-loading')
+          $('#inplace-propertyform').submit(function() {
+              $('#hidden-comment').val($('#comment').val())
+            })
         }
 
         function revert_ticket() {
@@ -227,6 +233,8 @@
                 <input type="hidden" name="view_time" 
                     value="${to_utimestamp(ticket['changetime'])}" />
               </py:if>
+              <input id="hidden-comment" type="hidden" name="comment" 
+                     value=""/>
               <div class="stickyBox">
                 <div id="overview" class="stickyStatus $colspan">
                   <div class="whitebox"></div>



Mime
View raw message