Sha256: 6ce2857a171617013658265c373ddba94e828cfc5cabafd68d9097d1a46c258d

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

$(document).ready(function() {

  $('.fooltip-link-container').each(function() {
    $(this).children('a').attr('data-content', $(this).children('.content').html());
    $(this).children('a').attr('data-original-title', $(this).children('.title').html());
  });

  $('.fooltip-link').popover();

  $('.popover .close').live('click', function() {
    id = $(this).closest('.popover').find('.fooltip-popup').attr('data-fooltip-link-id');
    $('#' + id).popover('hide');
  });

});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fooltip-0.0.9 app/assets/javascripts/fooltip/containers.js
fooltip-0.0.8 app/assets/javascripts/fooltip/containers.js
fooltip-0.0.7 app/assets/javascripts/fooltip/containers.js
fooltip-0.0.6 app/assets/javascripts/fooltip/containers.js