equal
deleted
inserted
replaced
52 </script> |
52 </script> |
53 {% endif %} |
53 {% endif %} |
54 {% if help_text %} |
54 {% if help_text %} |
55 <script type="text/javascript"> |
55 <script type="text/javascript"> |
56 $(document).ready( function() { |
56 $(document).ready( function() { |
57 var tooltip = "<div class='tooltip'><div class='tooltip-body'><img src='/soc/content/images/purrInfo.png' alt='' /><h3>Info</h3><p>{{ help_text }}</p></div><div class='tooltip-bottom'></div></div>"; |
57 var tooltip = "<div class='tooltip'><div class='tooltip-body'><img src='/soc/content/images/purrInfo.png' alt='' /><h3>Info</h3><p>{% autoescape off %}{{ help_text|linebreaksbr|escapejs }}{% endautoescape %}</p></div><div class='tooltip-bottom'></div></div>"; |
58 var tooltip_object=null; |
58 var tooltip_object=null; |
59 var documented = $("#{{ field_id }}"); |
59 var documented = $("#{{ field_id }}"); |
60 var not_fieldset = documented.attr('tagName') !== 'FIELDSET'; |
60 var not_fieldset = documented.attr('tagName') !== 'FIELDSET'; |
61 if (not_fieldset) { |
61 if (not_fieldset) { |
62 documented.focus(function() { |
62 documented.focus(function() { |