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