From cc53959ac5ba3e786f3d6ad3403919b82c52fa42 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 6 Mar 2016 19:39:56 +0100 Subject: Activecontrols: avoid updating client side if the value didn't change Fix #399 --- framework/Web/UI/ActiveControls/TActiveDatePicker.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'framework/Web/UI/ActiveControls/TActiveDatePicker.php') diff --git a/framework/Web/UI/ActiveControls/TActiveDatePicker.php b/framework/Web/UI/ActiveControls/TActiveDatePicker.php index 6328bac7..66fa8a8c 100755 --- a/framework/Web/UI/ActiveControls/TActiveDatePicker.php +++ b/framework/Web/UI/ActiveControls/TActiveDatePicker.php @@ -89,6 +89,9 @@ class TActiveDatePicker extends TDatePicker implements ICallbackEventHandler, I * @param string text content for the textbox */ public function setText($value){ + if(parent::getText() === $value) + return; + parent::setText($value); if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()){ $cb=$this->getPage()->getCallbackClient(); -- cgit v1.2.3