Skip to content

Commit

Permalink
fix a few bugs in built-in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 3, 2015
1 parent fb79b19 commit cd547e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

6.29 2015-11-03
- Fixed a few bugs in built-in templates. (Zoffix, sri)

6.28 2015-11-02
- Improved build_app method in Mojo::Server to work more like the load_app
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojolicious/resources/templates/mojo/menubar.html.ep
Expand Up @@ -125,10 +125,11 @@
});
$(document).ready(function () {
$('a[href^="#"]').addClass('mojoscroll');
$(".mojoscroll").click(function (e) {
$('.mojoscroll').click(function (e) {
e.preventDefault();
e.stopPropagation();
var hash = "#" + this.href.split("#")[1];
var anchor = this.href.split('#')[1].replace(/(:|\.|\[|\]|,)/g, "\\$1");
var hash = '#' + anchor;
var target = $(hash);
var old = target.attr('id');
target.attr('id', '');
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/resources/templates/mojo/perldoc.html.ep
Expand Up @@ -90,7 +90,7 @@
</style>
</head>
<body>
%= include 'mojo/mojobar'
%= include 'mojo/menubar'
<div id="wrapperlicious">
<div id="perldoc">
<div id="source">
Expand Down

0 comments on commit cd547e8

Please sign in to comment.