From 64d50ad9b4c5eaad2c780c6fcf2777ebe57d33aa Mon Sep 17 00:00:00 2001 From: nilsding Date: Sat, 27 Dec 2014 01:55:09 +0100 Subject: [PATCH] fox'd --- app/assets/javascripts/notifications.coffee | 2 +- app/views/notifications/index.html.haml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/notifications.coffee b/app/assets/javascripts/notifications.coffee index a7a909e8..75a271ba 100644 --- a/app/assets/javascripts/notifications.coffee +++ b/app/assets/javascripts/notifications.coffee @@ -1 +1 @@ -($ '[data-toggle="tooltip"]').tooltip(placement: 'top') \ No newline at end of file +($ document).ready -> ($ '[data-toggle="tooltip"]').tooltip() \ No newline at end of file diff --git a/app/views/notifications/index.html.haml b/app/views/notifications/index.html.haml index 50c8d440..919de1c4 100644 --- a/app/views/notifications/index.html.haml +++ b/app/views/notifications/index.html.haml @@ -14,7 +14,7 @@ = user_screen_name notification.target.user %p.notification--text answered - %a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.id), 'data-toggle' => 'tooltip', 'data-placement' => 'top', title: "#{notification.target.content[0..40]}..."} + %a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.id), title: "#{notification.target.content[0..40]}...", data: { toggle: :tooltip, placement: :top }} your question = time_ago_in_words notification.target.created_at ago @@ -40,7 +40,7 @@ = user_screen_name notification.target.user %p.notification--text smiled at - %a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id), 'data-toggle' => 'tooltip', 'data-placement' => 'top', title: "#{notification.target.answer.content[0..40]}..."} + %a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id), title: "#{notification.target.answer.content[0..40]}...", data: { toggle: :tooltip, placement: :top }} your answer = time_ago_in_words notification.target.created_at ago @@ -54,7 +54,7 @@ = user_screen_name notification.target.user %p.notification--text commented on - %a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id), 'data-toggle' => 'tooltip', 'data-placement' => 'top', title: "#{notification.target.answer.content[0..40]}..."} + %a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id), title: "#{notification.target.answer.content[0..40]}...", data: { toggle: :tooltip, placement: :top }} your answer = time_ago_in_words notification.target.created_at ago