forked from platypush/platypush
Handlers & buttons
This commit is contained in:
parent
27398030e4
commit
1bda7b8346
2 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue