diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-09-02 17:13:07 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-09-02 17:13:07 +0200 |
commit | 699f5f09bfe176c925997127315974faf333e486 (patch) | |
tree | b033eebb14b8cb879da234aea5ac717c9dfba29b /module/web/static/default/status.js | |
parent | cleanded up again (diff) | |
download | pyload-699f5f09bfe176c925997127315974faf333e486.tar.xz |
dynamic webinterface
Diffstat (limited to 'module/web/static/default/status.js')
-rw-r--r-- | module/web/static/default/status.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/module/web/static/default/status.js b/module/web/static/default/status.js index f3d521e45..31a4e0032 100644 --- a/module/web/static/default/status.js +++ b/module/web/static/default/status.js @@ -81,4 +81,20 @@ window.addEvent('domready', function(){ }); + $$('.statusbutton')[0].addEvent('click', function(e){ + + new Request({ + 'url' : '/json/play', + 'method' : 'get' + }).send() + }) + + $$('.statusbutton')[1].addEvent('click', function(e){ + + new Request({ + 'url' : '/json/pause', + 'method' : 'get' + }).send() + }) + });
\ No newline at end of file |