diff --git a/trunk/includes/class/class.LSsession.php b/trunk/includes/class/class.LSsession.php index 824dbeda..07dd6ed8 100644 --- a/trunk/includes/class/class.LSsession.php +++ b/trunk/includes/class/class.LSsession.php @@ -616,8 +616,8 @@ class LSsession { */ function getSubDnLdapServerOptions($selected=NULL) { $list = $this -> getSubDnLdapServer(); - asort($list); if ($list) { + asort($list); $display=''; foreach($list as $dn => $txt) { if ($selected && ($selected==$dn)) { @@ -861,8 +861,8 @@ class LSsession { // Niveau $listTopDn = $this -> getSubDnLdapServer(); - asort($listTopDn); if (is_array($listTopDn)) { + asort($listTopDn); $GLOBALS['Smarty'] -> assign('label_level',$this -> getLevelLabel()); $GLOBALS['Smarty'] -> assign('_refresh',_('RafraƮchir')); $LSsession_topDn_index = array(); diff --git a/trunk/includes/js/LSconfirmBox.js b/trunk/includes/js/LSconfirmBox.js index d366cbfc..d27389e0 100644 --- a/trunk/includes/js/LSconfirmBox.js +++ b/trunk/includes/js/LSconfirmBox.js @@ -55,7 +55,7 @@ var LSconfirmBox = new Class({ this.fx = { open: new Fx.Morph(this.box, {duration: 500, transition: Fx.Transitions.Sine.easeOut, onComplete: this.displayContent.bind(this)}), - close: new Fx.Morph(this.box, {duration: 500, transition: Fx.Transitions.Sine.easeOut, onComplete: this.onClose.bind(this)}), + close: new Fx.Morph(this.box, {duration: 500, transition: Fx.Transitions.Sine.easeOut, onComplete: this.onClose.bind(this)}) }; }, diff --git a/trunk/includes/js/LSformElement_url.js b/trunk/includes/js/LSformElement_url.js index acb2a6ce..3a40e360 100644 --- a/trunk/includes/js/LSformElement_url.js +++ b/trunk/includes/js/LSformElement_url.js @@ -42,7 +42,7 @@ var LSformElement_url = new Class({ if (window.sidebar) { window.sidebar.addPanel(name,href,''); } - else if(document.all) { + else if(window.external) { window.external.AddFavorite(href,name); } else { diff --git a/trunk/includes/js/LSselect.js b/trunk/includes/js/LSselect.js index 305e415c..80a7cb52 100644 --- a/trunk/includes/js/LSselect.js +++ b/trunk/includes/js/LSselect.js @@ -39,6 +39,10 @@ var LSselect = new Class({ $$('.sortBy_subDn').each(function(el) { el.addEvent('click',this.sortBy.bind(this,'subDn')); }, this); + + $$('td.LSobject-select-names').each(function(el) { + el.addEvent('click',this.onNameClick.bind(this,el)); + }, this); }, oncheckboxChange: function(checkbox){ @@ -132,5 +136,11 @@ var LSselect = new Class({ this.tempInput['sortBy'].setProperty('value',value); this.tempInput['sortBy'].injectInside(this.LSselect_search_form); this.submitSearchForm(); + }, + + onNameClick: function(td) { + var input = td.getParent().getFirst().getFirst(); + input.checked = (!input.checked); + input.fireEvent('click'); } }); diff --git a/trunk/templates/css/LSselect.css b/trunk/templates/css/LSselect.css index 39f0f2d5..611fbc7f 100644 --- a/trunk/templates/css/LSselect.css +++ b/trunk/templates/css/LSselect.css @@ -16,6 +16,10 @@ width: 10px; } +.LSobject-select-names { + cursor: pointer; +} + #LSselect_topDn_label { float: left; font-size: 0.8em;