From 1bda7b834638d95a9bbe6dd0158394ab0d2f3baf Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 24 Apr 2018 01:30:04 +0200 Subject: [PATCH] Handlers & buttons --- platypush/backend/http/static/js/video.omxplayer.js | 3 ++- .../backend/http/templates/plugins/video.omxplayer.html | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/platypush/backend/http/static/js/video.omxplayer.js b/platypush/backend/http/static/js/video.omxplayer.js index 493d20127..dd7c9e8c7 100644 --- a/platypush/backend/http/static/js/video.omxplayer.js +++ b/platypush/backend/http/static/js/video.omxplayer.js @@ -34,7 +34,8 @@ $(document).ready(function() { return false; }); - $searchForm.find('button[data-action]').on('click', function(evt) { + $ctrlForm.on('submit', function() { return false; }); + $ctrlForm.find('button[data-action]').on('click', function(evt) { var action = $(this).data('action'); var $btn = $(this); diff --git a/platypush/backend/http/templates/plugins/video.omxplayer.html b/platypush/backend/http/templates/plugins/video.omxplayer.html index 6e97464db..6e24aae6f 100644 --- a/platypush/backend/http/templates/plugins/video.omxplayer.html +++ b/platypush/backend/http/templates/plugins/video.omxplayer.html @@ -28,6 +28,10 @@ + + @@ -40,6 +44,10 @@ + +