Commit bd7f2c41308ff03f17623a3718defddd0f721c70
1 parent
1f3f8e31
Exists in
master
and in
3 other branches
Add tooltip span and re-adjust institution position by javascript
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Showing
2 changed files
with
2 additions
and
3 deletions
Show diff stats
public/views/gov-user-comments-extra-fields.js
@@ -6,10 +6,9 @@ modulejs.define("GovUserCommentsExtraFields", ['jquery','CreateInstitution'], fu | @@ -6,10 +6,9 @@ modulejs.define("GovUserCommentsExtraFields", ['jquery','CreateInstitution'], fu | ||
6 | 6 | ||
7 | 7 | ||
8 | function prepend_to_additional_information() { | 8 | function prepend_to_additional_information() { |
9 | - var additional_information = $("#comments-additional-information"); | ||
10 | var institution_comments = $("#input_institution_comments").remove(); | 9 | var institution_comments = $("#input_institution_comments").remove(); |
11 | 10 | ||
12 | - institution_comments.insertAfter(additional_information); | 11 | + $(".comments-software-extra-fields").prepend(institution_comments); |
13 | } | 12 | } |
14 | 13 | ||
15 | 14 |
views/comments_extra_field.html.erb
1 | <div id="input_institution_comments"> | 1 | <div id="input_institution_comments"> |
2 | <%= label_tag "input_institution", _("Organiztion name or Enterprise name")%> | 2 | <%= label_tag "input_institution", _("Organiztion name or Enterprise name")%> |
3 | - | 3 | + <span class="star-tooltip"></span> |
4 | <input type="text" id="input_institution"> | 4 | <input type="text" id="input_institution"> |
5 | 5 | ||
6 | <%= content_tag(:div, _("No institution found"), | 6 | <%= content_tag(:div, _("No institution found"), |