- LSdefault :: LSdebug

-> Modification de LSdebugHidden (a -> span)
	-> Lors d'un double clic sur la fenetre de debug -> fermeture
- LSattribute : Correction de la méthode getFormVal()
This commit is contained in:
Benjamin Renard 2008-10-06 15:53:52 +00:00
parent f8b0a443db
commit ea15514109
4 changed files with 6 additions and 5 deletions

View file

@ -338,7 +338,7 @@ class LSattribute {
*/ */
function getFormVal() { function getFormVal() {
$data=$this -> getDisplayValue(); $data=$this -> getDisplayValue();
if((!is_array($data))&&($data!=NULL)) { if(!is_array($data)) {
$data=array($data); $data=array($data);
} }
return $data; return $data;

View file

@ -1,11 +1,12 @@
var LSdefault = new Class({ var LSdefault = new Class({
initialize: function(){ initialize: function(){
this.LSdebug = $('LSdebug'); this.LSdebug = $('LSdebug');
this.LSdebug.addEvent('dblclick',this.LSdebugHidde.bind(this));
this.LSdebugInfos = $('LSdebug_infos'); this.LSdebugInfos = $('LSdebug_infos');
this.LSdebug.setOpacity(0); this.LSdebug.setOpacity(0);
this.LSdebugHidden = $('LSdebug_hidden'); 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 = $('LSerror');
this.LSerror.setOpacity(0); this.LSerror.setOpacity(0);
@ -51,8 +52,7 @@ var LSdefault = new Class({
$('LSsession_topDn_form').submit(); $('LSsession_topDn_form').submit();
}, },
onLSdebugHiddenClick: function(event){ LSdebugHidde: function(){
new Event(event).stop();
this.fx.LSdebug.start(0.8,0); this.fx.LSdebug.start(0.8,0);
}, },

View file

@ -37,6 +37,7 @@
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
cursor: pointer;
} }
#LSinfos { #LSinfos {

View file

@ -18,7 +18,7 @@
{$LSerrors} {$LSerrors}
</div> </div>
<div id='LSdebug'> <div id='LSdebug'>
<a href='#' id='LSdebug_hidden'>X</a> <span id='LSdebug_hidden'>X</span>
<div id='LSdebug_infos'>{if $LSdebug != ''}{$LSdebug}{/if}</div> <div id='LSdebug_infos'>{if $LSdebug != ''}{$LSdebug}{/if}</div>
</div> </div>