allura
修訂 | 4f0cf252fce513b6000ad493543b31c69f1b0c64 (tree) |
---|---|
時間 | 2010-10-25 23:02:00 |
作者 | Jenny Steele <jsteele@geek...> |
Commiter | Jenny Steele |
[#1072] Better fix for ticket view extra row
@@ -61,7 +61,8 @@ | ||
61 | 61 | {% endfor %} |
62 | 62 | </div> |
63 | 63 | </div> |
64 | - {% if globals.custom_fields %} | |
64 | + {% set min_c_fields = '_milestone' in ticket.custom_fields and 1 or 0 %} | |
65 | + {% if globals.custom_fields and globals.custom_fields.__len__() > min_c_fields %} | |
65 | 66 | <div class="row"> |
66 | 67 | {% set cf_count=0 %} |
67 | 68 | {% for field in globals.custom_fields or [] %} |
@@ -147,6 +148,7 @@ | ||
147 | 148 | ticket_content.hide(); |
148 | 149 | title_holder.text('\u00A0'); |
149 | 150 | $('a.edit_ticket').addClass('btn_activate'); |
151 | + $('textarea.ticket_form.description').focus() | |
150 | 152 | return false; |
151 | 153 | }); |
152 | 154 | $('a.cancel_form').click(function(){ |
@@ -170,15 +172,6 @@ | ||
170 | 172 | $('.editbox a').click(function(event){ |
171 | 173 | event.stopPropagation(); |
172 | 174 | }); |
173 | - | |
174 | - // Hack for demo, to be removed | |
175 | - // must figure out why this extra row is created and fix by not creating it | |
176 | - $('div.row:not(:has(div))').remove(); | |
177 | - | |
178 | - // Hack for demo, to be removed | |
179 | - // cancel button and save button should be the same kind of HTML element | |
180 | - // this hack adjusts the height of the cancel link to match the save button | |
181 | - $('a.cancel_form').css('line-height', '16px'); | |
182 | 175 | }); |
183 | 176 | </script> |
184 | 177 | {% endif %} |