Sha256: edca8ab6105504b7ef9cf4f5bc5b854edcb1bbd5e36ff06d47a110f86c8a1385

Contents?: true

Size: 1.01 KB

Versions: 30

Compression:

Stored size: 1.01 KB

Contents

function searchFrameLinks() {
  $('#method_list_link').unbind("click").click(function() {
    toggleSearchFrame(this, '/' + library + '/methods');
  });

  $('#class_list_link').unbind("click").click(function() {
    toggleSearchFrame(this, '/' + library + '/class');
  });

  $('#file_list_link').unbind("click").click(function() {
    toggleSearchFrame(this, '/' + library + '/files');
  });
}

function methodPermalinks() {
  if ($($('#content h1')[0]).text().match(/^Method:/)) return;

  $('#method_details .signature, #constructor_details .signature, ' +
      '.method_details .signature, #method_missing_details .signature').each(function() {
    var id = this.id;
    var match = id.match(/^(.+?)-(class|instance)_method$/);
    if (match) {
      var name = match[1];
      var scope = match[2] == "class" ? "." : ":";
      var url = window.location.pathname + scope + escape(name);
      $(this).prepend('<a class="permalink" href="' + url + '">permalink</a>');
    }
  });
}

$(searchFrameLinks);
$(methodPermalinks);

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
challah-0.6.2 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.6.1 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.6.0 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.5.4 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.5.3 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.5.2 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.5.1 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.5.0 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.4.1 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.4.0 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.3.5 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.3.4 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.3.3 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.3.2 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.3.1 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.3.0 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.2.1 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
challah-0.2.0 vendor/bundle/gems/yard-0.7.5/lib/yard/server/templates/default/fulldoc/html/js/live.js
yard-0.7.5 lib/yard/server/templates/default/fulldoc/html/js/live.js
nutshell-crm-0.0.6.alpha vendor/bundle/gems/yard-0.7.4/lib/yard/server/templates/default/fulldoc/html/js/live.js