summaryrefslogtreecommitdiffstats
path: root/module/web/static/default/status.js
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/static/default/status.js')
-rw-r--r--module/web/static/default/status.js16
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