Handlers & buttons

This commit is contained in:
Fabio Manganiello 2018-04-24 01:30:04 +02:00
parent 27398030e4
commit 1bda7b8346
2 changed files with 10 additions and 1 deletions

View file

@ -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);

View file

@ -28,6 +28,10 @@
<i class="fa fa-step-backward"></i>
</button>
<button data-action="backward">
<i class="fa fa-backward"></i>
</button>
<button data-action="play">
<i class="fa fa-play"></i>
</button>
@ -40,6 +44,10 @@
<i class="fa fa-stop"></i>
</button>
<button data-action="forward">
<i class="fa fa-forward"></i>
</button>
<button data-action="next">
<i class="fa fa-step-forward"></i>
</button>