This commit is contained in:
alexandre-pereira 2015-03-18 12:00:00 +01:00
parent f47579d2f3
commit 8dcc168458
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,7 @@
@section('page-scripts')
<script>
var redirect;
document.getElementById('imgRef').addEventListener("mousedown", function() {
document.getElementById('imgRef').addEventListener("mousedown", function(event) {
redirect = setTimeout(function(){location.href="{{URL::to('choisirref')}}"}, 3000);
return false;
@ -24,7 +24,11 @@
document.getElementById('imgRef').addEventListener("mouseup", function() {
clearTimeout(redirect);
return false;
});
</script>
@endsection