diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-09-14 00:27:31 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-09-14 00:27:31 +0200 |
commit | f475f0095f2b4af1acab8cfe3d6c866a71b73bf1 (patch) | |
tree | f43d5ca41f17765c56bf00afb0a523ffef805b2f /templates/expenses | |
parent | 9b358a4a3e6ce5cad229ba2fa6da9218e88b61e0 (diff) | |
download | kosten-f475f0095f2b4af1acab8cfe3d6c866a71b73bf1.tar.gz kosten-f475f0095f2b4af1acab8cfe3d6c866a71b73bf1.tar.bz2 kosten-f475f0095f2b4af1acab8cfe3d6c866a71b73bf1.zip |
Replaced current JS by LS and generated JS
Diffstat (limited to 'templates/expenses')
-rw-r--r-- | templates/expenses/add.jinja | 3 | ||||
-rw-r--r-- | templates/expenses/show.jinja | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/templates/expenses/add.jinja b/templates/expenses/add.jinja index 388341a..d63f844 100644 --- a/templates/expenses/add.jinja +++ b/templates/expenses/add.jinja @@ -5,10 +5,11 @@ Neue Ausgabe hinzufügen {% endblock %} +{% set JSFunction = "addJS" %} + {% block js %} {{ super() }} <script type="text/javascript" src="{{ "jqueryui/jquery-ui.js" | static_url }}"></script> - <script type="text/javascript" src="{{ "js/add.js" | static_url }}"></script> {% endblock %} {% block style %} diff --git a/templates/expenses/show.jinja b/templates/expenses/show.jinja index a3b9422..8052757 100644 --- a/templates/expenses/show.jinja +++ b/templates/expenses/show.jinja @@ -1,6 +1,8 @@ {% extends "layout.jinja" %} {% from "macros.jinja" import left_arrow, right_arrow, colorize %} +{% set JSFunction = "showJS" %} + {% block heading %} {% if exps | length > 1 %} Aktuelle Kosten @@ -9,11 +11,6 @@ {% endif %} {% endblock %} -{% block js %} - {{ super() }} - <script type="text/javascript" src="{{ "js/show.js" | static_url }}"></script> -{% endblock %} - {% block content %} {% for e in exps %} {% if exps | length > 1 %}<h2>{{e|date}}</h2>{% endif %} |