From: Benoît Pin Date: Wed, 15 Apr 2015 11:18:19 +0000 (+0200) Subject: fonction « shake » publique. X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/251a2364e6b195bd56dec69d19f6585d746e18fa?ds=sidebyside;hp=4bfd1c451269a42aca30892f9c85b7a0fb255f87 fonction « shake » publique. --- diff --git a/Products/Plinn/skins/ajax_scripts/ajax_form_manager.js b/Products/Plinn/skins/ajax_scripts/ajax_form_manager.js index 6f6748e..bf72813 100644 --- a/Products/Plinn/skins/ajax_scripts/ajax_form_manager.js +++ b/Products/Plinn/skins/ajax_scripts/ajax_form_manager.js @@ -5,6 +5,7 @@ // var FormManager; +var shake; (function(){ @@ -487,7 +488,7 @@ function smoothScroll(from, to) { } /* adapted from http://xahlee.info/js/js_shake_box.html */ -function shake(e, distance, time) { +shake = function(e, distance, time) { // Handle arguments if (!time) { time = 500; } if (!distance) { distance = 5; } @@ -525,6 +526,6 @@ function shake(e, distance, time) { } } animate(); -} +}; }());