You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2015/09/23 19:29:28 UTC
svn commit: r1704905 - /vcl/trunk/web/.ht-inc/requests.php
Author: jfthomps
Date: Wed Sep 23 17:29:28 2015
New Revision: 1704905
URL: http://svn.apache.org/viewvc?rev=1704905&view=rev
Log:
VCL-907 - reload reservations page content soonish after Connect is clicked when reservation is in reserved state
requests.php: modified AJconnectRequest: added conditional block that checks for the reservation being in the reserved state, and if so, changes the timeout being sent back to be just one minute from now
Modified:
vcl/trunk/web/.ht-inc/requests.php
Modified: vcl/trunk/web/.ht-inc/requests.php
URL: http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/requests.php?rev=1704905&r1=1704904&r2=1704905&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/requests.php (original)
+++ vcl/trunk/web/.ht-inc/requests.php Wed Sep 23 17:29:28 2015
@@ -4305,6 +4305,11 @@ function AJconnectRequest() {
$return = array('html' => $h);
if(! is_null($timeout)) {
$return['timeoutid'] = "timeoutvalue|$requestid";
+ // if reservation in reserved state, set timeout to 1 minute later so that Reservation
+ // contents get reloaded hopefully after the user has connected and the state has been
+ // updated to inuse so that More Options items can bet updated accordingly
+ if($requestData['laststateid'] == 3 && $requestData['stateid'] == 14)
+ $timeout = time() + 60;
$return['timeout'] = $timeout;
}
sendJSON($return);