Skip to content

Commit

Permalink
-corretta selezione giocatore in dettaglioGiocatore.tpl.php
Browse files Browse the repository at this point in the history
-ctrl+freccie per muoversi tra quickOperations
  • Loading branch information
fiste788 committed Nov 14, 2012
1 parent 39d5cb9 commit f0eae7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions js/custom/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,16 @@ $(window).bind("enterViewportDesktop", enableStickpanel);
$(window).bind("exitViewportDesktop", disableStickpanel);
$(window).bind("enterViewportDesktop", enableWell);
$(window).bind("exitViewportPhone", enableCountdown);
var operationBack = $("#operation a.back");
var operationNext = $("#operation a.next");
if(operationNext.length || operationBack.length) {
$(document).keydown(function(e) {
if(e.ctrlKey && e.which == 37 && operationBack.length)
window.location.href = operationBack.attr('href');
if(e.ctrlKey && e.which == 39 && operationNext.length)
window.location.href = operationNext.attr('href');

});
}
if(!LOCAL)
$.trackPage("UA-3016148-1");
2 changes: 1 addition & 1 deletion tpl/operazioni/dettaglioGiocatore.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<input type="hidden" value="<?php echo $this->request->get('p'); ?>" />
<input type="hidden" value="<?php echo $this->request->has('edit') ? $this->request->get('edit') : 'view'; ?>" name="edit" />
<label for="giocatore">Seleziona il giocatore:</label>
<select id="giocatore" name="giocatore" onchange="this.form.submit();">
<select id="giocatore" name="id" onchange="this.form.submit();">
<?php foreach ($this->elencoGiocatori as $key => $val): ?>
<option<?php echo ($key == $this->request->get('id')) ? ' selected="selected"' : ''; ?> value="<?php echo $key; ?>"><?php echo $val->cognome . " " . $val->nome; ?></option>
<?php endforeach; ?>
Expand Down

0 comments on commit f0eae7a

Please sign in to comment.