summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TTimeTriggeredCallback.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/TTimeTriggeredCallback.php
parentc7ab73d6448aad8aa630878fc83298b762505194 (diff)
Activecontrols: avoid updating client side if the value didn't change
Fix #399
Diffstat (limited to 'framework/Web/UI/ActiveControls/TTimeTriggeredCallback.php')
-rw-r--r--framework/Web/UI/ActiveControls/TTimeTriggeredCallback.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/Web/UI/ActiveControls/TTimeTriggeredCallback.php b/framework/Web/UI/ActiveControls/TTimeTriggeredCallback.php
index b643de46..79e411b7 100644
--- a/framework/Web/UI/ActiveControls/TTimeTriggeredCallback.php
+++ b/framework/Web/UI/ActiveControls/TTimeTriggeredCallback.php
@@ -46,6 +46,10 @@ class TTimeTriggeredCallback extends TCallback
$interval = TPropertyValue::ensureFloat($value);
if($interval <= 0)
throw new TConfigurationException('callback_interval_be_positive', $this->getID());
+
+ if($this->getInterval() === $value)
+ return;
+
$this->setViewState('Interval', $interval, 1);
if ($this->getActiveControl()->canUpdateClientSide()){
$client = $this->getPage()->getCallbackClient();