Sha256: 41b72f0ebeb8441c93e8045bac4ca8c8d96b777b87dc8e9b402f35677fd00bdd
Contents?: true
Size: 665 Bytes
Versions: 8
Compression:
Stored size: 665 Bytes
Contents
//= require jquery-1.8.3.min //= require_tree . jQuery(function($) { $('.letter-opener').on('click', 'tr', function() { var $this = $(this); $('iframe').attr('src', $this.find('a').attr('href')); $this.parent().find('.active').removeClass('active'); $this.addClass('active'); }); $('.refresh').click(function(e) { e.preventDefault(); var table = $('.letter-opener'); table.find('tbody').empty().append('<tr><td colspan="2">Loading...</td></tr>'); table.load(table.data('letters-path') + ' .letter-opener', function() { $('iframe').attr('src', $('.letter-opener tbody a:first-child()').attr('href')); }); }); });
Version data entries
8 entries across 8 versions & 1 rubygems