diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-01-10 16:20:31 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-01-10 16:20:31 +0100 |
commit | 3d655ddbfbd96abecb9a9c9bebf6e43eb710ab12 (patch) | |
tree | dc1ce469a6c75ce5f44561cf1d2c3c269ef90f94 /module/web/templates/default/base.html | |
parent | moved Hooks.py (diff) | |
download | pyload-3d655ddbfbd96abecb9a9c9bebf6e43eb710ab12.tar.xz |
fixed manage.py, addBox working, some code formatted and cleaned
Diffstat (limited to 'module/web/templates/default/base.html')
-rw-r--r-- | module/web/templates/default/base.html | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index cd0b85903..7171a1f1c 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -12,13 +12,16 @@ <script src="{{ MEDIA_URL }}js/sprintf.js"></script>
<script src="{{ MEDIA_URL }}js/funktions.js"></script>
<script src="{{ MEDIA_URL }}js/jquery.progressbar.js"></script>
+<script src="{{ MEDIA_URL }}js/jquery.form.js"></script>
<title>{% block title %}pyLoad Webinterface{% endblock %}</title>
<script type="text/javascript">
$(document).ready(function(){
$.getJSON('/json/status', LoadJsonToContent );
- $.getJSON('/json/links', LinksToContent );
+ $('#add_form').ajaxForm(function() {
+ AddBox();
+ });
});
@@ -58,20 +61,6 @@ function AddBox() }
}
-function AddSubmit()
-{
- $("#add_form").submit();
- /*
- $.post("/json/add_package", { links: $("#add_links").text() } );
- return false;
- if( $("#add_cf").val() != "" )
- {
- //$("#add_form").submit();
- }
- */
- AddBox();
-
-}
</script>
{% block head %}
|