From ea155141098a1665ed61d6304c22decc5951fd83 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 6 Oct 2008 15:53:52 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSdefault=20::=20LSdebug=20=09->=20Modifica?= =?UTF-8?q?tion=20de=20LSdebugHidden=20(a=20->=20span)=20=09->=20Lors=20d'?= =?UTF-8?q?un=20double=20clic=20sur=20la=20fenetre=20de=20debug=20->=20fer?= =?UTF-8?q?meture=20-=20LSattribute=20:=20Correction=20de=20la=20m=C3=A9th?= =?UTF-8?q?ode=20getFormVal()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/class/class.LSattribute.php | 2 +- trunk/includes/js/LSdefault.js | 6 +++--- trunk/templates/css/LSdefault.css | 1 + trunk/templates/top.tpl | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/trunk/includes/class/class.LSattribute.php b/trunk/includes/class/class.LSattribute.php index 253a2ee4..ac5f6fa4 100644 --- a/trunk/includes/class/class.LSattribute.php +++ b/trunk/includes/class/class.LSattribute.php @@ -338,7 +338,7 @@ class LSattribute { */ function getFormVal() { $data=$this -> getDisplayValue(); - if((!is_array($data))&&($data!=NULL)) { + if(!is_array($data)) { $data=array($data); } return $data; diff --git a/trunk/includes/js/LSdefault.js b/trunk/includes/js/LSdefault.js index 8c54f94d..14cf8047 100644 --- a/trunk/includes/js/LSdefault.js +++ b/trunk/includes/js/LSdefault.js @@ -1,11 +1,12 @@ var LSdefault = new Class({ initialize: function(){ this.LSdebug = $('LSdebug'); + this.LSdebug.addEvent('dblclick',this.LSdebugHidde.bind(this)); this.LSdebugInfos = $('LSdebug_infos'); this.LSdebug.setOpacity(0); this.LSdebugHidden = $('LSdebug_hidden'); - this.LSdebugHidden.addEvent('click',this.onLSdebugHiddenClick.bindWithEvent(this)); + this.LSdebugHidden.addEvent('click',this.LSdebugHidde.bind(this)); this.LSerror = $('LSerror'); this.LSerror.setOpacity(0); @@ -51,8 +52,7 @@ var LSdefault = new Class({ $('LSsession_topDn_form').submit(); }, - onLSdebugHiddenClick: function(event){ - new Event(event).stop(); + LSdebugHidde: function(){ this.fx.LSdebug.start(0.8,0); }, diff --git a/trunk/templates/css/LSdefault.css b/trunk/templates/css/LSdefault.css index c126356c..a9a2fe3b 100644 --- a/trunk/templates/css/LSdefault.css +++ b/trunk/templates/css/LSdefault.css @@ -37,6 +37,7 @@ color: #fff; text-decoration: none; font-weight: bold; + cursor: pointer; } #LSinfos { diff --git a/trunk/templates/top.tpl b/trunk/templates/top.tpl index 964854f2..1e9ff81b 100644 --- a/trunk/templates/top.tpl +++ b/trunk/templates/top.tpl @@ -18,7 +18,7 @@ {$LSerrors}
- X + X
{if $LSdebug != ''}{$LSdebug}{/if}