[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):"";
- [Noalyss-commit] [noalyss] 12/219: Infobulle : warning : esthetic, (continued)
- [Noalyss-commit] [noalyss] 12/219: Infobulle : warning : esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 126/219: Esthetic : align text, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 113/219: Améliore esthétique, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 106/219: task #0001272: Rendre possible l'appel de la calculatrice depuis le fin fond d'une page., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 59/219: ManageTable : Correct bug for the sort, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 76/219: Extourne : correct reverse operation for autoliquidation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 135/219: Template operation : message if there is no template, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 192/219: Select_box : add a new type of value and fix a problem with the position of the div, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 112/219: Task #0001481: Encodage Vente, Achat, Fin ou OD Task #0001485: possibilité de clouer une fenetre, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 125/219: Rewriting : Use of Noalyss_CSV, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 175/219: Change autocomplete and adapt Icard setWidth is false + indicator icon for ICard,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 81/219: PRINTPOSTE : esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 121/219: correct js : getMessage instead of message, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 78/219: InPlace_Switch : add a supplemental javascript command, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 10/219: GESTION -> CUST, MANAGER, ADM ... esthetic move the name of the tiers to the right, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 50/219: task #0001467: Journaux VENTES - inversion D/C dans liste de catégorie de fiches, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 169/219: For MSIE, force to unicode (still problem with MSIE11) !, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 94/219: Fix background color for button 'modele operation', Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 139/219: Javascript : small error, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 42/219: SQL : protection injection, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 75/219: PRINTJRN Use new class http_input, Dany De Bontridder, 2017/12/18