noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 08/12: Task #1045 - Amélioration apparence


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 08/12: Task #1045 - Amélioration apparence : Bug : classe non utilisée
Date: Sat, 29 Nov 2014 16:15:36 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit e0728998b9a44de61530b224a2357f53a88ff301
Author: Dany De Bontridder <address@hidden>
Date:   Sat Nov 29 14:03:59 2014 +0100

    Task #1045 - Amélioration apparence  :
    Bug : classe non utilisée
---
 include/class_ibutton.php |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/class_ibutton.php b/include/class_ibutton.php
index 8cd6670..a0c7a51 100644
--- a/include/class_ibutton.php
+++ b/include/class_ibutton.php
@@ -26,19 +26,21 @@ require_once('class_html_input.php');
 class IButton extends HtmlInput
 {
     var $label;
+    var $class;
     /*!\brief show the html  input of the widget*/
     public function input($p_name=null,$p_value=null,$p_class="")
     {
         $this->name=($p_name==null)?$this->name:$p_name;
         $this->value=($p_value==null)?$this->value:$p_value;
-               $this->label=(trim($this->label) != 
'')?$this->label:$this->value;
-        $class=($p_class=="")?"smallbutton ":$this->class;
+       $this->label=(trim($this->label) != '')?$this->label:$this->value;
+        $this->class=($p_class != "")?$p_class:$this->class;
+        $this->class=($this->class=="")?"smallbutton ":$this->class;
         if ( $this->readOnly==true) return $this->display();
         $extra= ( isset($this->extra))?$this->extra:"";
         $this->id=($this->id=="")?$this->name:$this->id;
                $tab=(isset($this->tabindex))?' 
tabindex="'.$this->tabindex.'"':"";
         $r='<input type="BUTTON" name="'.$this->name.'"'.
-           ' class="'.$class.'" '.
+           ' class="'.$this->class.'" '.
                 $this->extra.
                                $tab.
            ' id="'.$this->id.'"'.



reply via email to

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