]> git.parisson.com Git - teleforma.git/commitdiff
avoid double click !
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 22 Jul 2014 15:31:39 +0000 (17:31 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 22 Jul 2014 15:31:39 +0000 (17:31 +0200)
teleforma/templates/telemeta/base.html

index 89f8315f47bf13a40ebba8d45331df220ce70320..679ecbe377e1df4c6bf4928f5214d50103615d91 100644 (file)
@@ -217,7 +217,16 @@ alt="logo" />
 {% analytics_code %}
 {% endblock analytics %}
 
-<script type='text/javascript'>window.scrollTo(0, 1);</script>
+<script type='text/javascript'>
+window.scrollTo(0, 1);
+
+$(document).ready(function(){
+  $("*").dblclick(function(e){
+    e.preventDefault();
+  });
+});
+
+</script>
 
 </body>
 </html>