Skip to content

Commit

Permalink
fixed small JavaScript bug in Mojolicious::Plugin::PODRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 24, 2012
1 parent dd2ad74 commit b3470e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
This file documents the revision history for Perl extension Mojolicious.

2.90 2012-04-25
- Fixed small JavaScript bug in Mojolicious::Plugin::PODRenderer.

2.89 2012-04-24
- Made logo on built-in templates smaller.
- Improved CSS of built-in templates.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -33,7 +33,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Leaf Fluttering In Wind';
our $VERSION = '2.89';
our $VERSION = '2.90';

# "These old doomsday devices are dangerously unstable.
# I'll rest easier not knowing where they are."
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/templates/mojobar.html.ep
Expand Up @@ -73,7 +73,7 @@
%= javascript begin
$(window).load(function () {
if (window.location.hash) {
var tweak = $(window.location.hash).offset().top - 70;
var tweak = $(window.location.hash).offset().top - 50;
$('html, body').animate({scrollTop:tweak}, 1);
}
var mojobar = $('#mojobar');
Expand All @@ -98,7 +98,7 @@
var parts = this.href.split("#");
var hash = "#" + parts[1];
var target = $(hash);
var top = target.offset().top - 70;
var top = target.offset().top - 50;
var old = target.attr('id');
target.attr('id', '');
location.hash = hash;
Expand Down

0 comments on commit b3470e4

Please sign in to comment.