Author: gjm Date: Thu Dec 20 15:56:19 2012 New Revision: 1424549 URL: http://svn.apache.org/viewvc?rev=1424549&view=rev Log: adds the ticket description field to the quick ticket - towards #234 (from olemis)
Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css?rev=1424549&r1=1424548&r2=1424549&view=diff ============================================================================== --- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css (original) +++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css Thu Dec 20 15:56:19 2012 @@ -206,6 +206,10 @@ pre.wiki { width: 505px; } +#qct-fieldset #field-description { + width: auto; +} + #field-summary { width: 505px; } Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js?rev=1424549&r1=1424548&r2=1424549&view=diff ============================================================================== --- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js (original) +++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js Thu Dec 20 15:56:19 2012 @@ -22,8 +22,8 @@ $( function () { var qct_timeout = null; // Do not close dropdown menu if user interacts with form controls - $('.dropdown-menu input, .dropdown-menu label, .dropdown-menu select') - .click(function (e) { e.stopPropagation(); }); + $('.dropdown-menu input, .dropdown-menu label, .dropdown-menu select' + + ', .dropdown-menu textarea').click(function (e) { e.stopPropagation(); }); // Install popover for create ticket shortcut // Important: Further options specified in markup @@ -57,7 +57,7 @@ $( function () { // Clear input controls inside quick create box function qct_clearui() { - $('#qct-fieldset input, #qct-fieldset select').val(''); + $('#qct-fieldset input, #qct-fieldset select, #qct-fieldset textarea').val(''); } // We want to submit via #qct-create Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1424549&r1=1424548&r2=1424549&view=diff ============================================================================== --- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html (original) +++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html Thu Dec 20 15:56:19 2012 @@ -117,9 +117,17 @@ </select> </py:def> <py:def function="qct_box()"> - <label for="field-summary">Summary</label> - <input type="text" id="field-summary" - name="field_summary" placeholder="Ticket summary" /> + <div> + <label for="field-summary">Summary</label> + <input type="text" id="field-summary" + name="field_summary" placeholder="Ticket summary" /> + </div> + <div> + <label for="field-description">Description</label> + <textarea id="field-description" name="field_description" + rows="3" cols="28" + placeholder="Ticket description"></textarea> + </div> <div class="form-horizontal"> <py:for each="field in qct.fields"> <label class="control-label" for="field-${field.name}">${field.label}</label>