]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/framework/Web/UI/ActiveControls/TActiveButton.php
baculum: New Baculum API and Baculum Web
[bacula/bacula] / gui / baculum / framework / Web / UI / ActiveControls / TActiveButton.php
index 697e96f1306c07098232e780c59ec7617822d34c..cc88423d0fdbf9d9732e4fb81d862e320d706e66 100644 (file)
@@ -3,9 +3,9 @@
  * TActiveButton class file.
  *
  * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
- * @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2014 PradoSoft
- * @license http://www.pradosoft.com/license/
+ * @link https://github.com/pradosoft/prado
+ * @copyright Copyright &copy; 2005-2016 The PRADO Group
+ * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
  * @package System.Web.UI.ActiveControls
  */
 
@@ -94,6 +94,9 @@ class TActiveButton extends TButton implements ICallbackEventHandler, IActiveCon
         */
        public function setText($value)
        {
+               if(parent::getText() === $value)
+                       return;
+
                parent::setText($value);
                if($this->getActiveControl()->canUpdateClientSide())
                        $this->getPage()->getCallbackClient()->setAttribute($this, 'value', $value);