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) {
|
function getSubDnLdapServerOptions($selected=NULL) {
|
||||||
$list = $this -> getSubDnLdapServer();
|
$list = $this -> getSubDnLdapServer();
|
||||||
asort($list);
|
|
||||||
if ($list) {
|
if ($list) {
|
||||||
|
asort($list);
|
||||||
$display='';
|
$display='';
|
||||||
foreach($list as $dn => $txt) {
|
foreach($list as $dn => $txt) {
|
||||||
if ($selected && ($selected==$dn)) {
|
if ($selected && ($selected==$dn)) {
|
||||||
|
@ -861,8 +861,8 @@ class LSsession {
|
||||||
|
|
||||||
// Niveau
|
// Niveau
|
||||||
$listTopDn = $this -> getSubDnLdapServer();
|
$listTopDn = $this -> getSubDnLdapServer();
|
||||||
asort($listTopDn);
|
|
||||||
if (is_array($listTopDn)) {
|
if (is_array($listTopDn)) {
|
||||||
|
asort($listTopDn);
|
||||||
$GLOBALS['Smarty'] -> assign('label_level',$this -> getLevelLabel());
|
$GLOBALS['Smarty'] -> assign('label_level',$this -> getLevelLabel());
|
||||||
$GLOBALS['Smarty'] -> assign('_refresh',_('Rafraîchir'));
|
$GLOBALS['Smarty'] -> assign('_refresh',_('Rafraîchir'));
|
||||||
$LSsession_topDn_index = array();
|
$LSsession_topDn_index = array();
|
||||||
|
|
|
@ -55,7 +55,7 @@ var LSconfirmBox = new Class({
|
||||||
|
|
||||||
this.fx = {
|
this.fx = {
|
||||||
open: new Fx.Morph(this.box, {duration: 500, transition: Fx.Transitions.Sine.easeOut, onComplete: this.displayContent.bind(this)}),
|
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) {
|
if (window.sidebar) {
|
||||||
window.sidebar.addPanel(name,href,'');
|
window.sidebar.addPanel(name,href,'');
|
||||||
}
|
}
|
||||||
else if(document.all) {
|
else if(window.external) {
|
||||||
window.external.AddFavorite(href,name);
|
window.external.AddFavorite(href,name);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -39,6 +39,10 @@ var LSselect = new Class({
|
||||||
$$('.sortBy_subDn').each(function(el) {
|
$$('.sortBy_subDn').each(function(el) {
|
||||||
el.addEvent('click',this.sortBy.bind(this,'subDn'));
|
el.addEvent('click',this.sortBy.bind(this,'subDn'));
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
$$('td.LSobject-select-names').each(function(el) {
|
||||||
|
el.addEvent('click',this.onNameClick.bind(this,el));
|
||||||
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
oncheckboxChange: function(checkbox){
|
oncheckboxChange: function(checkbox){
|
||||||
|
@ -132,5 +136,11 @@ var LSselect = new Class({
|
||||||
this.tempInput['sortBy'].setProperty('value',value);
|
this.tempInput['sortBy'].setProperty('value',value);
|
||||||
this.tempInput['sortBy'].injectInside(this.LSselect_search_form);
|
this.tempInput['sortBy'].injectInside(this.LSselect_search_form);
|
||||||
this.submitSearchForm();
|
this.submitSearchForm();
|
||||||
|
},
|
||||||
|
|
||||||
|
onNameClick: function(td) {
|
||||||
|
var input = td.getParent().getFirst().getFirst();
|
||||||
|
input.checked = (!input.checked);
|
||||||
|
input.fireEvent('click');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
width: 10px;
|
width: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.LSobject-select-names {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
#LSselect_topDn_label {
|
#LSselect_topDn_label {
|
||||||
float: left;
|
float: left;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
|
Loading…
Reference in a new issue