Browse Source

Avoid HTTP 301 Moved Permanently

pull/166/head
Jean Jordaan 10 years ago
parent
commit
44f062c60f
  1. 4
      demo/cabaret/templates/_layout.jinja2
  2. 4
      pygal/config.py

4
demo/cabaret/templates/_layout.jinja2

@ -4,8 +4,8 @@
<title>Cabaret - Online pygal graph generator</title>
<script type="text/javascript" src="{{ url_for('static', filename='components/jquery/jquery.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='components/bootstrap/docs/assets/js/bootstrap.min.js') }}"></script>
<script type="text/javascript" src="http://kozea.github.com/pygal.js/javascripts/svg.jquery.js"></script>
<script type="text/javascript" src="http://kozea.github.com/pygal.js/javascripts/pygal-tooltips.js"></script>
<script type="text/javascript" src="http://kozea.github.io/pygal.js/javascripts/svg.jquery.js"></script>
<script type="text/javascript" src="http://kozea.github.io/pygal.js/javascripts/pygal-tooltips.js"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='components/bootstrap/docs/assets/css/bootstrap.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ url_for('static', filename='css.css') }}" type="text/css" />

4
pygal/config.py

@ -386,8 +386,8 @@ class Config(CommonConfig):
# Misc #
js = Key(
('http://kozea.github.com/pygal.js/javascripts/svg.jquery.js',
'http://kozea.github.com/pygal.js/javascripts/pygal-tooltips.js'),
('http://kozea.github.io/pygal.js/javascripts/svg.jquery.js',
'http://kozea.github.io/pygal.js/javascripts/pygal-tooltips.js'),
list, "Misc", "List of js file",
"It can be a filepath or an external link",
str)

Loading…
Cancel
Save