|
Last change
on this file was
10643,
checked in by Russ Tyndall, 12 years ago
|
|
Backported hours_layout_changer from the trac12 branch - ver 0.9.8
|
|
File size:
746 bytes
|
| Line | |
|---|
| 1 | $(document).ready(function(){ |
|---|
| 2 | // display modify ticket by default |
|---|
| 3 | // window.setTimeout(function(){$("#modify").parent().removeClass("collapsed");}, 25); |
|---|
| 4 | |
|---|
| 5 | // Couldnt find the comment box, lets just abort |
|---|
| 6 | if ($('#comment').length == 0) return; |
|---|
| 7 | var tbl, hours, colClass, tr, replacement; |
|---|
| 8 | tbl = $('<table style="border:1px solid #D7D7D7;" border="0" cellpadding="3" cellspacing="0"><tbody><tr></tr></tbody></table>'); |
|---|
| 9 | $('#comment').parent().parent().after(tbl); |
|---|
| 10 | hours = $('#field-hours'); |
|---|
| 11 | colClass = hours.parent().attr("class"); |
|---|
| 12 | tr = hours.parent().parent(); |
|---|
| 13 | $(tbl[0].rows[0]).append($('.'+colClass, tr)); |
|---|
| 14 | replacement = $('<td class="'+colClass+'"></td>'); |
|---|
| 15 | tr.prepend(replacement.clone()).prepend(replacement.clone()); |
|---|
| 16 | }); |
|---|
Note: See
TracBrowser
for help on using the repository browser.