diff --git a/app/views/comments/_form.html.erb b/app/views/comments/_form.html.erb index ef2077aee2..803918b974 100644 --- a/app/views/comments/_form.html.erb +++ b/app/views/comments/_form.html.erb @@ -8,7 +8,7 @@ style=" background-color: #f8f8f8; border: 1px solid #e7e7e7; - padding: 18px; + padding: 36px; <%= "display: none" if location == :edit %> " > diff --git a/app/views/comments/create.js.erb b/app/views/comments/create.js.erb index 7456d2e763..a82100bb98 100644 --- a/app/views/comments/create.js.erb +++ b/app/views/comments/create.js.erb @@ -41,3 +41,5 @@ fileUploadElements.forEach(function(element) { }); notyNotification('mint', 3000, 'success', 'topRight', 'Comment Added!'); $('#comment-count')[0].innerHTML = parseInt($('#comment-count')[0].innerHTML, 10)+1; +// attach tooltips to comment buttons +$('[data-toggle="tooltip"]').tooltip(); \ No newline at end of file diff --git a/app/views/notes/_comment.html.erb b/app/views/notes/_comment.html.erb index 88f65adbd5..3e2e35a6ca 100644 --- a/app/views/notes/_comment.html.erb +++ b/app/views/notes/_comment.html.erb @@ -56,7 +56,7 @@ + <% else %> - + <% end %> <% if logged_in_as(['admin', 'moderator']) || (current_user && (comment.uid == current_user.uid || comment.parent.uid == current_user.uid)) %> - + <% end %> @@ -132,13 +132,9 @@ } }); }); - - $(function () { - $('[data-toggle="tooltip"]').tooltip() - }) -