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

Version Path
tdiary-contrib-5.3.0 js/referer.js
tdiary-contrib-5.2.4 js/referer.js
tdiary-contrib-5.2.3 js/referer.js
tdiary-contrib-5.2.2 js/referer.js
tdiary-contrib-5.2.1 js/referer.js
tdiary-contrib-5.2.0 js/referer.js
tdiary-contrib-5.1.7 js/referer.js
tdiary-contrib-5.1.6 js/referer.js
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/js/referer.js
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/js/referer.js
tdiary-contrib-5.1.5 js/referer.js
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/js/referer.js
tdiary-contrib-5.1.4 js/referer.js
tdiary-contrib-5.1.3 js/referer.js
tdiary-contrib-5.1.2 js/referer.js
tdiary-contrib-5.1.1 js/referer.js
tdiary-contrib-5.1.0 js/referer.js
tdiary-contrib-5.0.13 js/referer.js
tdiary-contrib-5.0.12 js/referer.js
tdiary-contrib-5.0.11 js/referer.js