• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

修訂4f0cf252fce513b6000ad493543b31c69f1b0c64 (tree)
時間2010-10-25 23:02:00
作者Jenny Steele <jsteele@geek...>
CommiterJenny Steele

Log Message

[#1072] Better fix for ticket view extra row

Change Summary

差異

--- a/ForgeTracker/forgetracker/templates/tracker/ticket.html
+++ b/ForgeTracker/forgetracker/templates/tracker/ticket.html
@@ -61,7 +61,8 @@
6161 {% endfor %}
6262 </div>
6363 </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 %}
6566 <div class="row">
6667 {% set cf_count=0 %}
6768 {% for field in globals.custom_fields or [] %}
@@ -147,6 +148,7 @@
147148 ticket_content.hide();
148149 title_holder.text('\u00A0');
149150 $('a.edit_ticket').addClass('btn_activate');
151+ $('textarea.ticket_form.description').focus()
150152 return false;
151153 });
152154 $('a.cancel_form').click(function(){
@@ -170,15 +172,6 @@
170172 $('.editbox a').click(function(event){
171173 event.stopPropagation();
172174 });
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');
182175 });
183176 </script>
184177 {% endif %}