noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 175/219: Change autocomplete and adapt Icard


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 175/219: Change autocomplete and adapt Icard setWidth is false + indicator icon for ICard
Date: Mon, 18 Dec 2017 13:22:58 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 0a17ccf833e246141aaa76d0c0f66087e2eb1489
Author: Dany De Bontridder <address@hidden>
Date:   Tue Nov 28 20:14:43 2017 +0100

    Change autocomplete and adapt Icard
    setWidth is false + indicator icon for ICard
---
 html/image/ajax-loader.gif  | Bin 0 -> 1737 bytes
 html/js/controls.js         |   2 +-
 include/lib/icard.class.php |   5 ++---
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/html/image/ajax-loader.gif b/html/image/ajax-loader.gif
new file mode 100644
index 0000000..148005d
Binary files /dev/null and b/html/image/ajax-loader.gif differ
diff --git a/html/js/controls.js b/html/js/controls.js
index fd8dc0b..ba3fa1b 100644
--- a/html/js/controls.js
+++ b/html/js/controls.js
@@ -67,7 +67,7 @@ Autocompleter.Base = Class.create({
           update.style.position = 'absolute';
           Position.clone(element, update, {
             setHeight: false,
-           setWidth:true,
+           setWidth:false,
             offsetTop: element.offsetHeight
           });
         }
diff --git a/include/lib/icard.class.php b/include/lib/icard.class.php
index 419cac3..6567b7b 100644
--- a/include/lib/icard.class.php
+++ b/include/lib/icard.class.php
@@ -220,7 +220,6 @@ class ICard extends HtmlInput
     {
         if ($p_name==null&&$this->name=="")
             throw (new Exception(_('Le nom d une icard doit être donne')));
-
         $this->value=($p_value==null)?$this->value:$p_value;
         if ($this->readOnly==true)
             return $this->display();
@@ -244,9 +243,9 @@ class ICard extends HtmlInput
         if ($this->autocomplete==1)
         {
             $this->indicator="ind_".$this->id;
-            $ind=sprintf('<span id="%s" class="autocomplete" 
style="position:absolute;display:none"><img src="image/ajax-loader.gif" 
alt="Chargement..."/></span>',
+            $ind=sprintf('<span id="%s" class="autocomplete" 
style="position:absolute;display:none;margin-left:-20px"><img 
src="image/ajax-loader.gif" alt="Chargement..."/></span>',
                     $this->indicator);
-            $this->indicator="null";
+           // $this->indicator="null";
             $div=($this->choice_create==1)?sprintf('<div id="%s"  
class="autocomplete"></div>',
                             $this->choice):"";
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]