Sha256: cc400d2251a2bf53c3d0382fbeffb59e37a97c4aebdef012044160e8cb28f6b8
Contents?: true
Size: 1.01 KB
Versions: 9
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
9 entries across 9 versions & 1 rubygems