mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- Problème dans LSsession : assort() sur des tableaux vides
- LSselect : Selection d'un objet lorsqu'on clique sur son non - LSconfirmBox : Correction erreur syntax JS - LSformElement_url : Correction erreur JS avec Opera
This commit is contained in:
parent
d4f4c5e387
commit
6e217e07fa
5 changed files with 18 additions and 4 deletions
|
@ -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();
|
||||
|
|
|
@ -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)})
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
});
|
||||
|
|
|
@ -16,6 +16,10 @@
|
|||
width: 10px;
|
||||
}
|
||||
|
||||
.LSobject-select-names {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#LSselect_topDn_label {
|
||||
float: left;
|
||||
font-size: 0.8em;
|
||||
|
|
Loading…
Reference in a new issue