summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveDatePicker.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-03-06 19:39:56 +0100
committerFabio Bas <ctrlaltca@gmail.com>2016-03-06 19:39:56 +0100
commitcc53959ac5ba3e786f3d6ad3403919b82c52fa42 (patch)
tree77e0b29f387cde1b380813f93a73a2c4aa16390e /framework/Web/UI/ActiveControls/TActiveDatePicker.php
parentc7ab73d6448aad8aa630878fc83298b762505194 (diff)
Activecontrols: avoid updating client side if the value didn't change
Fix #399
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveDatePicker.php')
-rwxr-xr-xframework/Web/UI/ActiveControls/TActiveDatePicker.php3
1 files changed, 3 insertions, 0 deletions
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();