Permalink
Browse files

Re-add addTooltipBehaviour to cyt.js.

  • Loading branch information...
1 parent 3b93406 commit a4f495450b351bd39b8e6a670a211738703d13a7 @huerlisi committed May 5, 2011
Showing with 13 additions and 13 deletions.
  1. +0 −13 public/javascripts/application.js
  2. +13 −0 public/javascripts/cyt.js
@@ -1,18 +1,5 @@
// learnyt
-// Add tooltips for overview
-function addTooltipBehaviour() {
- $(".tooltip-title[title]").each(function() {
- if ( $(this).attr('title') != '' ) {
- $(this).tooltip({
- position: 'top center',
- predelay: 500,
- effect: 'fade'
- });
- }
- });
-};
-
var selectables = $('#response form .possible_answer');
selectables.css('cursor', "pointer");
selectables.click(function(element) {
View
@@ -44,6 +44,19 @@ function addAutogrowBehaviour() {
};
// Add tooltips for overview
+function addTooltipBehaviour() {
+ $(".tooltip-title[title]").each(function() {
+ if ( $(this).attr('title') != '' ) {
+ $(this).tooltip({
+ position: 'top center',
+ predelay: 500,
+ effect: 'fade'
+ });
+ }
+ });
+};
+
+// Add tooltips for overview
function addOverviewTooltipBehaviour() {
$('.overview-list li a[title]').tooltip({
position: 'center right',

0 comments on commit a4f4954

Please sign in to comment.