This commit is contained in:
alexandre-pereira 2015-03-18 12:00:00 +01:00
parent f47579d2f3
commit 8dcc168458

View File

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