diff -r 91cf6872d853 -r 7257b66a6766 app/templates/projrev/proposal/submit.html --- a/app/templates/projrev/proposal/submit.html Sun Aug 09 23:24:48 2009 +0530 +++ b/app/templates/projrev/proposal/submit.html Mon Aug 10 00:06:31 2009 +0530 @@ -38,47 +38,48 @@ var tooltip = [ "
", "
", - " ", + " ", "

Info

", "

", " {% autoescape off %}", - " {{ help_text|linebreaksbr|escapejs }}", + " {{ field.help_text|linebreaksbr|escapejs }}", " {% endautoescape %}", "

", "
", "
", "
" - ].join(""); - var tooltip_object=null; - var documented = $("#{{ field_id }}"); - var not_fieldset = documented.attr('tagName') !== 'FIELDSET'; - if (not_fieldset) { - documented.focus(function() { - if (tooltip_object==null) { - tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000}); - } - }); - documented.blur(function() { - if (tooltip_object!==null) { - tooltip_object.remove(); - tooltip_object=null; - } - }); - } - else { - documented.find("input").hover(function() { - if (tooltip_object==null) { - tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000}); - } - }, - function() { - if (tooltip_object!==null) { - tooltip_object.remove(); - tooltip_object=null; - } - }); - } - }); + ].join(""); + + var tooltip_object=null; + var documented = $("#id_{{ field.name }}"); + var not_fieldset = documented.attr('tagName') !== 'FIELDSET'; + if (not_fieldset) { + documented.focus(function() { + if (tooltip_object==null) { + tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000}); + } + }); + documented.blur(function() { + if (tooltip_object!==null) { + tooltip_object.remove(); + tooltip_object=null; + } + }); + } + else { + documented.find("input").hover(function() { + if (tooltip_object==null) { + tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000}); + } + }, + function() { + if (tooltip_object!==null) { + tooltip_object.remove(); + tooltip_object=null; + } + }); + } + }); {% endif %} {{ field.errors }}