Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Fixes #155
Browse files Browse the repository at this point in the history
  • Loading branch information
mezis committed Sep 22, 2013
1 parent e05d4e5 commit 836dd96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/assets/javascripts/application.js.coffee
Expand Up @@ -21,7 +21,6 @@

$.unobtrusive () ->
# only enable tooltips on non-touch devices

return if ('ontouchstart' in document.documentElement)
$('[title]').tooltip
delay: { show:500, hide:150 }
Expand All @@ -33,12 +32,12 @@ $(document).on 'page:fetch', () ->
$('[data-barberpole]').addClass('af-barberpole')

$(document).on 'page:change', () ->
$('[title]').tooltip('hide')
$('[title]').tooltip('destroy')
$('.tooltip').remove()

$(document).on 'page:restore', () ->
$('[data-barberpole]').removeClass('af-barberpole')
$('[title]').tooltip('hide')
$('[title]').tooltip('destroy')
$('.tooltip').remove()

$(document).ready () ->
Expand Down

0 comments on commit 836dd96

Please sign in to comment.