From 171e74ae7e3f76b1ab05762f677ded235b56aac8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 11 Jan 2014 13:31:12 +0100 Subject: [PATCH] Reduce time to hide/show --- htdocs/core/tpl/bloc_showhide.tpl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/tpl/bloc_showhide.tpl.php b/htdocs/core/tpl/bloc_showhide.tpl.php index 2ac7ce4a397..2c5d71c79d5 100644 --- a/htdocs/core/tpl/bloc_showhide.tpl.php +++ b/htdocs/core/tpl/bloc_showhide.tpl.php @@ -28,13 +28,13 @@ if (isset($object->extraparams[$blocname]['showhide'])) $hide = (empty($object-> $(document).ready(function() { $("#hide-").click(function(){ setShowHide(0); - $("#_bloc").hide("blind", {direction: "vertical"}, 800).removeClass("nohideobject"); + $("#_bloc").hide("blind", {direction: "vertical"}, 300).removeClass("nohideobject"); $(this).hide(); $("#show-").show(); }); $("#show-").click(function(){ setShowHide(1); - $("#_bloc").show("blind", {direction: "vertical"}, 800).addClass("nohideobject"); + $("#_bloc").show("blind", {direction: "vertical"}, 300).addClass("nohideobject"); $(this).hide(); $("#hide-").show(); }); @@ -43,7 +43,7 @@ $(document).ready(function() { var element = 'element; ?>'; var htmlelement = ''; var type = 'showhide'; - + $.get("?id="+id+"&element="+element+"&htmlelement="+htmlelement+"&type="+type+"&value="+status); } });