You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2012/04/01 11:23:22 UTC

svn commit: r1308054 - in /incubator/bloodhound/trunk/bloodhound_theme/bhtheme: htdocs/scripts/theme.js templates/bloodhound_theme.html

Author: gjm
Date: Sun Apr  1 09:23:22 2012
New Revision: 1308054

URL: http://svn.apache.org/viewvc?rev=1308054&view=rev
Log:
Theme code import: Quick create ticket cancel button

Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js?rev=1308054&r1=1308053&r2=1308054&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/scripts/theme.js Sun Apr  1 09:23:22 2012
@@ -4,5 +4,12 @@ $( function () {
     // Do not close dropdown menu if user clicks on form controls
     $('.dropdown-menu input, .dropdown-menu label')
         .click(function (e) { e.stopPropagation(); });
+    
+    // Install quick create box click handlers
+    $('#qct-cancel').click(
+        function() {
+          $('#qct-box input').val('');
+        }
+      )
   })
 

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=1308054&r1=1308053&r2=1308054&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html Sun Apr  1 09:23:22 2012
@@ -85,7 +85,7 @@
               <div class="controls">
                 <input name="qct_version" class="input-mini" type="text" 
                     placeholder="Version" />
-                <p class="help-block">Most recent (default)</p>
+                <p class="help-block">Most recent by default</p>
               </div>
               <label class="control-label" for="qct_type">Type</label>
               <div class="controls">
@@ -102,12 +102,12 @@
             </div>
             <div class="btn-toolbar">
               <div class="btn-group">
-                  <button class="btn btn-primary">
+                  <button id="qct-create" class="btn btn-primary">
                     Create
                   </button> 
                 </div>
                 <div class="btn-group">
-                  <button class="btn btn-danger" href="#">
+                  <button id="qct-cancel" class="btn btn-danger">
                     Cancel
                   </button>
               </div>
@@ -130,6 +130,7 @@
                 #qct-box .form-horizontal .controls { margin-left: 90px; }
                 #qct-box .form-horizontal .control-label { width : 70px; }
               </style>
+              <div class="popover-title"><h3>Create Ticket</h3></div>
               <div class="popover-content">
               ${qct_box()}
               </div>