You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by ma...@apache.org on 2013/06/05 11:57:15 UTC
svn commit: r1489783 -
/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
Author: matevz
Date: Wed Jun 5 09:57:14 2013
New Revision: 1489783
URL: http://svn.apache.org/r1489783
Log:
Ref. #533 - don't disable other forms when creating a new ticket (full form)
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=1489783&r1=1489782&r2=1489783&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html Wed Jun 5 09:57:14 2013
@@ -81,7 +81,7 @@
// otherwise the default submit comment only happens
});
- function modify_ticket() {
+ function modify_ticket(newticket) {
if ($('#vc-summary').is('.edit-active'))
// Already in editable state
return;
@@ -124,11 +124,13 @@
$('#inplace-edit, #vc-status a').hide();
$('#edit-state-buttons, #edit-state-buttons-below, #edit-workflow-buttons, #edit-comment').show();
- $('.activityfeed, .relations, #attachments').css('opacity', '0.3');
- // disable input controls on all other forms
- $('form:not("#inplace-propertyform") :input').attr('disabled', 'disabled');
-
- $('#qct-inline, #qct-inline-notice-success, #qct-inline-notice-error').hide({'duration': 400});
+ 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');
+ $('#qct-inline, #qct-inline-notice-success, #qct-inline-notice-error').hide({'duration': 400});
+ }
}
function add_update_hidden_summary_fn() {
@@ -207,7 +209,7 @@
add_update_hidden_summary_fn();
$('#inplace-edit-button button#inplace-edit').click(function (e) {
- modify_ticket();
+ modify_ticket(false);
e.preventDefault();
});
</py:if>
@@ -278,7 +280,7 @@
$("#trac-add-comment").scrollToTop();
</py:if>
<py:if test="not ticket.exists">
- modify_ticket();
+ modify_ticket(true);
$('#vc-status').parent().hide();
$('#vc-product').parent().hide();
</py:if>