From 0a136fe37491281ada5084b6eb5a72d4ca8d948a Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 14 Jan 2014 22:36:10 +0100 Subject: Removed TJavascriptLogger from demos and tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Any browser’s development tool is way better, and it stops exceptions from being catched by the browser’s console --- demos/chat/protected/pages/Home.page | 9 ++++----- .../pages/ActiveControls/Samples/TActiveButton/Home.page | 1 - .../pages/ActiveControls/Samples/TActiveCheckBox/Home.page | 1 - .../ActiveControls/Samples/TActiveCustomValidator/Home.page | 1 - .../pages/ActiveControls/Samples/TActiveHyperLink/Home.page | 1 - .../pages/ActiveControls/Samples/TActivePager/Home.page | 1 - .../pages/ActiveControls/Samples/TActivePanel/Home.page | 1 - .../pages/ActiveControls/Samples/TActiveTableRow/Home.page | 1 - .../pages/ActiveControls/Samples/TCallbackClientSide/Home.page | 1 - .../pages/ActiveControls/Samples/TCallbackOptions/Home.page | 1 - .../quickstart/protected/pages/Controls/Samples/TPanel/Home.page | 1 - demos/quickstart/protected/pages/Tutorial/AjaxChat.page | 7 +++---- demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page | 5 ++--- 13 files changed, 9 insertions(+), 22 deletions(-) (limited to 'demos') diff --git a/demos/chat/protected/pages/Home.page b/demos/chat/protected/pages/Home.page index b896cd28..7740c062 100755 --- a/demos/chat/protected/pages/Home.page +++ b/demos/chat/protected/pages/Home.page @@ -1,5 +1,5 @@ - + Prado Chat Demo @@ -17,14 +17,14 @@
- - OnClick="processMessage"/>
- @@ -39,7 +39,6 @@ }); - </com:TForm> -<com:TJavascriptLogger /> @@ -572,7 +571,7 @@ public function getUserMessages($user) $content = ''; foreach($this->findAll('for_user = ?', $user) as $message) $content .= $this->formatMessage($message); - $this->deleteAll('for_user = ? OR created_on < ?', + $this->deleteAll('for_user = ? OR created_on < ?', $user, time() - 300); //5 min inactivity return $content; } @@ -581,7 +580,7 @@ protected function formatMessage($message) { $user = htmlspecialchars($message->from_user); $content = htmlspecialchars($message->message); - return "
{$user}:" + return "
{$user}:" ." {$content}
"; } diff --git a/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page b/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page index 66bb0e43..39d7f9e5 100755 --- a/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page +++ b/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page @@ -430,7 +430,6 @@ and a button to send the message. Text="Send" />
</com:TForm> -<com:TJavascriptLogger /> @@ -571,7 +570,7 @@ public function getUserMessages($user) $content = ''; foreach($this->findAll('for_user = ?', $user) as $message) $content .= $this->formatMessage($message); - $this->deleteAll('for_user = ? OR created_on < ?', + $this->deleteAll('for_user = ? OR created_on < ?', $user, time() - 300); //5 min inactivity return $content; } @@ -580,7 +579,7 @@ protected function formatMessage($message) { $user = htmlspecialchars($message->from_user); $content = htmlspecialchars($message->message); - return "
{$user}:" + return "
{$user}:" ." {$content}
"; } -- cgit v1.2.3