- 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() {
$data=$this -> getDisplayValue();
if((!is_array($data))&&($data!=NULL)) {
if(!is_array($data)) {
$data=array($data);
}
return $data;

View file

@ -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);
},

View file

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

View file

@ -18,7 +18,7 @@
{$LSerrors}
</div>
<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>