Get rid of jquery-linkify.js

This commit is contained in:
Marcin Kulik 2012-04-07 00:06:00 +02:00
parent 2a71c08e5f
commit 6334dfde06
3 changed files with 1 additions and 7 deletions

View File

@ -1 +0,0 @@
function linkify(a,b){a=a.replace(/(http|https|ftp)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?\/?([a-zA-Z0-9\-\._\?\,\'\/\\\+&amp;%\$#\=~])*/g,'<a href="$&">$&</a>');b&&(a=a.replace(/\B#(\w+)/g,"<a href="+b("$1")+">#$1</a>"));return a}(function(a){a.fn.linkify=function(b){return this.each(function(){var c=a(this);c.html(linkify(c.html(),b))})}})(jQuery);

View File

@ -18,7 +18,6 @@ module ApplicationHelper
end
def markdown(&block)
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
markdown.render(capture(&block)).html_safe
MKD_RENDERER.render(capture(&block)).html_safe
end
end

View File

@ -80,8 +80,4 @@
new AsciiIo.Views.CommentsIndex({ collection: comments });
});
$(function() {
$('.asciicast .description, .asciicast-heading .title').linkify();
});
</script>