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.0.10 js/referer.js
tdiary-contrib-5.0.9 js/referer.js
tdiary-contrib-5.0.8 js/referer.js
tdiary-contrib-5.0.7 js/referer.js
tdiary-contrib-5.0.6 js/referer.js
tdiary-contrib-5.0.5 js/referer.js
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/js/referer.js
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-fa9c20aa0d97/js/referer.js
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-f08988dfa0f6/js/referer.js
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-a3c5f37278c4/js/referer.js
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/js/referer.js
tdiary-contrib-5.0.4 js/referer.js
tdiary-5.0.4 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/js/referer.js
tdiary-contrib-5.0.3 js/referer.js
tdiary-contrib-5.0.2 js/referer.js
tdiary-contrib-5.0.1 js/referer.js
tdiary-contrib-5.0.0 js/referer.js
tdiary-contrib-4.2.1 js/referer.js
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/bundler/gems/tdiary-contrib-2ab36447ae2a/js/referer.js
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/bundler/gems/tdiary-contrib-d189eb6688f1/js/referer.js