Changeset 0c268fc1 in cboos.git
- Timestamp:
- Jun 27, 2012, 7:11:09 PM (12 years ago)
- Branches:
- ticket10012/more-good-stuff
- Children:
- fbecb272
- Parents:
- 22bb4686
- git-author:
- Christian Boos <cboos@…> (06/27/12 01:37:28)
- git-committer:
- Christian Boos <cboos@…> (06/27/12 19:11:09)
- Location:
- trac
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trac/htdocs/css/report.css
r22bb4686 r0c268fc1 81 81 82 82 #query { clear: right } 83 #query fieldset, #query fieldset input, #query fieldset select { font-size: 11px } 84 #query fieldset input[type="button"] { 85 border: 1px solid #999; 86 border-radius: 1em; 87 padding: 0 .4em .1em; 83 #query fieldset, #query fieldset input, #query fieldset select { 84 font-size: 11px; 88 85 } 89 86 #query fieldset { margin-top: 1em } -
trac/htdocs/css/trac.css
r22bb4686 r0c268fc1 139 139 background: none; 140 140 } 141 /* quickbutton: round 1 character button ("quick action") */ 142 input[type="button"].trac-quickbutton, 143 input[type="submit"].trac-quickbutton { 144 border: 1px solid #999; 145 border-radius: 1em; 146 padding: 0 .4em .1em; 147 /* take the rest from .inlinebuttons */ 148 box-shadow: none; 149 margin: 0 .1em; 150 background: none; 151 } 152 input[type=button].trac-quickbutton:hover, 153 input[type=submit].trac-quickbutton:hover { 154 background: #f6f6f6; 155 box-shadow: .1em .1em .6em 0 #999; 156 text-shadow: .1em .1em #fcfcfc; 157 } 141 158 142 159 /* Header */ -
trac/htdocs/js/query.js
r22bb4686 r0c268fc1 116 116 var propertyName = this.name.substring(10, idx); 117 117 $(this).replaceWith( 118 $($.htmlFormat('<input type="button" value="$1">', this.value)) 118 $($.htmlFormat('<input type="button" value="$1"' + 119 ' class="trac-quickbutton">', this.value)) 119 120 .click(function() { 120 121 removeRow(this, propertyName); … … 146 147 // Add the remove button 147 148 tr.append($('<td>') 148 .append($('< div class="inlinebuttons">')149 .append($('<input type="button" value="–">')150 .click(function() { removeRow(this, propertyName); }))));149 .append($('<input type="button" value="–"' + 150 ' class="trac-quickbutton">') 151 .click(function() { removeRow(this, propertyName); }))); 151 152 152 153 // Add the row header … … 244 245 // Enable the Or... button if it's been disabled 245 246 $("#add_clause").attr("disabled", false); 246 }).next(" div.inlinebuttons").remove();247 }).next("input.trac-quickbutton").remove(); 247 248 248 249 // Add a new empty clause at the end by cloning the current last clause … … 273 274 $("#add_clause").closest("tr").find("select[name^=add_filter_]") 274 275 .val(field).change(); 275 }).next(" div.inlinebuttons").remove();276 }).next("input.trac-quickbutton").remove(); 276 277 if (!add_clause.closest("tbody").siblings().length) { 277 278 // That is, if there are no filters added to this clause … … 457 458 // Add the remove button 458 459 tr.append($('<td>') 459 .append($('<div class="inlinebuttons">') 460 .append($('<input type="button" value="–">') 461 .click(function() { 462 $('#batchmod_' + propertyName).remove(); 463 $($.htmlFormat("#add_batchmod_field option[value='$1']", 464 propertyName)).enable(); 465 }) 466 ) 460 .append($('<input type="button" value="–"' + 461 ' class="trac-quickbutton">') 462 .click(function() { 463 $('#batchmod_' + propertyName).remove(); 464 $($.htmlFormat("#add_batchmod_field option[value='$1']", 465 propertyName)).enable(); 466 }) 467 467 ) 468 468 ); -
trac/ticket/templates/query.html
r22bb4686 r0c268fc1 62 62 class="${field_name}" py:if="multiline or constraint_idx == 0"> 63 63 <td> 64 <div class="inlinebuttons"> 65 <input type="submit" name="rm_filter_${n_field_name}_${constraint_idx}" value="–" /> 66 </div> 64 <input type="submit" name="rm_filter_${n_field_name}_${constraint_idx}" value="–" class="trac-quickbutton" /> 67 65 </td> 68 66 <py:choose test="constraint_idx"> … … 121 119 <input type="text" name="${n_field_name}" value="$constraint_value" size="42" /> 122 120 </py:when> 123 121 124 122 <py:when test="field.type == 'time'" 125 123 py:with="(start, end) = '..' in constraint_value and constraint_value.split('..', 1) … … 148 146 len(constraints[field_name])) or None}">${field.label}</option> 149 147 </select> 150 <div class="inlinebuttons"> 151 <input type="submit" name="add_${clause_num}" value="+" /> 152 </div> 148 <input type="submit" name="add_${clause_num}" value="+" class="trac-quickbutton" /> 153 149 </td> 154 150 <td py:if="last_clause" class="or" colspan="2"> … … 158 154 <option py:for="field_name in field_names" value="$field_name">${fields[field_name].label}</option> 159 155 </select> 160 <div class="inlinebuttons"> 161 <input type="submit" name="add_${clause_num + 1}" value="+" /> 162 </div> 156 <input type="submit" name="add_${clause_num + 1}" value="+" class="trac-quickbutton" /> 163 157 </td> 164 158 </tr> … … 233 227 <div> 234 228 <input type="hidden" name="action" value="edit" /> 235 <input type="submit" 229 <input type="submit" 236 230 title="${_('Edit report {%(id)s} corresponding to this query', id=report_resource.id)}" 237 231 value="${_('Edit query')}" />
Note:
See TracChangeset
for help on using the changeset viewer.