More tooltips :)

This commit is contained in:
perroned 2014-07-30 13:51:54 -07:00
parent 92eeb16c4b
commit a15265b0c5
2 changed files with 5 additions and 2 deletions

View File

@ -48,7 +48,10 @@ Template.tabButtons.events
myTabs.updateValue newTabs
$(".publicChatTab").addClass('active') # doesn't work when closing the tab that's not currently active :(
Meteor.call("deletePrivateChatMessages", getInSession("userId"), @userId)
Template.chatInput.rendered = ->
$('input[rel=tooltip]').tooltip()
Template.chatInput.events
'keypress #newMessageInput': (event) -> # user pressed a button inside the chatbox
if event.which is 13 # Check for pressing enter to submit message

View File

@ -96,7 +96,7 @@
<template name="chatInput">
<br/>
<input type="text" id="newMessageInput" placeholder="Write a message..." />
<input type="text" id="newMessageInput" placeholder="Write a message..." rel="tooltip" data-placement="top" title="Write a new message" />
</template>