Mercurial > zeropaste
changeset 288:c8757469da39
The magic hash was broken.
author | edogawaconan <me@myconan.net> |
---|---|
date | Wed, 16 Oct 2013 04:30:49 +0900 |
parents | 77c157a9e645 |
children | 1b302d092e98 |
files | app/assets/javascripts/zp.formatter.js app/views/pastes/show.html.erb |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/app/assets/javascripts/zp.formatter.js Wed Oct 16 04:17:42 2013 +0900 +++ b/app/assets/javascripts/zp.formatter.js Wed Oct 16 04:30:49 2013 +0900 @@ -4,7 +4,7 @@ window.zp.formatter = { raw: function() { return $("#pl pre").text() }, links: function() { return $("#paste-mode a") }, - current: function() { return this.links().filter(".active").attr("href").slice(1) }, + current: function() { return $("#paste-mode .active a").attr("href").slice(1) }, markdown: function() { var area = $("#md div") area.html(marked(this.raw()))
--- a/app/views/pastes/show.html.erb Wed Oct 16 04:17:42 2013 +0900 +++ b/app/views/pastes/show.html.erb Wed Oct 16 04:30:49 2013 +0900 @@ -12,7 +12,7 @@ <div id="paste-show" data-id="<%= @paste.id %>"> <ul id="paste-mode" class="nav nav-tabs"> - <li><%= link_to 'Plain', '#pl', :class => "active", :data => { :toggle => 'pill' } %></li> + <li class="active"><%= link_to 'Plain', '#pl', :data => { :toggle => 'pill' } %></li> <li><%= link_to 'Highlight', '#hl', :data => { :toggle => 'pill' } %></li> <li><%= link_to 'Markdown', '#md', :data => { :toggle => 'pill' } %></li> </ul>