Change javascript for notification.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 7 Jan 2011 21:48:44 +0000 (22:48 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 7 Jan 2011 21:48:44 +0000 (22:48 +0100)
src/main/resources/static/css/sone.css
src/main/resources/templates/notify/newPostNotification.html
src/main/resources/templates/notify/newReplyNotification.html
src/main/resources/templates/notify/newSoneNotification.html

index 6a7eeac..89d9854 100644 (file)
@@ -49,6 +49,10 @@ textarea {
        color: rgb(255, 172, 0);
 }
 
+#sone a.link {
+       cursor: pointer;
+}
+
 #sone a.internet {
        color: rgb(255, 0, 0);
 }
index f17a1ba..94f7a1f 100644 (file)
@@ -1,6 +1,6 @@
 <div class="short-text">
        <%= Notification.NewPost.ShortText|l10n|html>
-       <a href="javascript:showNotificationDetails('<%notification.id|html>'); return false;"><%= Notification.ClickHereToRead|l10n|html></a>
+       <a class="link" onclick="showNotificationDetails('<%notification.id|html>'); return false;"><%= Notification.ClickHereToRead|l10n|html></a>
 </div>
 <div class="text hidden">
        <%= Notification.NewPost.Text|l10n|html>
index 0cf203b..d6d0670 100644 (file)
@@ -1,6 +1,6 @@
 <div class="short-text">
        <%= Notification.NewReply.ShortText|l10n|html>
-       <a href="javascript:showNotificationDetails('<%notification.id|html>'); return false;"><%= Notification.ClickHereToRead|l10n|html></a>
+       <a class="link" onclick="showNotificationDetails('<%notification.id|html>'); return false;"><%= Notification.ClickHereToRead|l10n|html></a>
 </div>
 <div class="text hidden">
        <%= Notification.NewReply.Text|l10n|html>
index ec715ae..8389f7a 100644 (file)
@@ -1,6 +1,6 @@
 <div class="short-text">
        <%= Notification.NewSone.ShortText|l10n|html>
-       <a href="javascript:showNotificationDetails('<%notification.id|html>'); return false;"><%= Notification.ClickHereToRead|l10n|html></a>
+       <a class="link" onclick="showNotificationDetails('<%notification.id|html>'); return false;"><%= Notification.ClickHereToRead|l10n|html></a>
 </div>
 <div class="text hidden">
        <%= Notification.NewSone.Text|l10n|html>