Sha256: fcb5ce7c3ceada9e133180f5a3bcfce162790596a10be8b55f3b4288a48c7145
Contents?: true
Size: 422 Bytes
Versions: 52
Compression:
Stored size: 422 Bytes
Contents
/** * referer.js: fetch referer with ajax * * Copyright (C) 2013 by MATSUOKA Kohei <kmachu@gmail.com> * You can distribute it under GPL. */ $(function() { $('div.main').on('click', 'button.lazy_referer', function(e) { var button = $(this); button.attr("disabled", "disabled"); $.get(button.data('endpoint'), function (data) { button.after($(data)); button.hide(); }, 'html'); }); });
Version data entries
52 entries across 46 versions & 2 rubygems