Avoid raw javascript in template

It kills the Symfony Crawler :)
This commit is contained in:
Jeremy 2015-02-07 18:28:30 +01:00
parent d01db0c71d
commit 8125b415d8
4 changed files with 3 additions and 4 deletions

View file

@ -0,0 +1,2 @@
top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>"

View file

@ -1,3 +0,0 @@
<script type="text/javascript">
top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>"
</script>

View file

@ -37,3 +37,4 @@
<script src="{{ asset('themes/_global/js/saveLink.js') }}"></script>
<script src="{{ asset('themes/_global/js/popupForm.js') }}"></script>
<script src="{{ asset('themes/baggy/js/closeMessage.js') }}"></script>
<script src="{{ asset('bundles/wallabagcore/js/bookmarklet.js') }}"></script>

View file

@ -12,7 +12,6 @@
<![endif]-->
<title>{% block title %}{% endblock %} - wallabag</title>
{% include "WallabagCoreBundle::_head.html.twig" %}
{% include "WallabagCoreBundle::_bookmarklet.html.twig" %}
</head>
<body>
{% include "WallabagCoreBundle::_top.html.twig" %}