vcl-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jftho...@apache.org
Subject svn commit: r1704905 - /vcl/trunk/web/.ht-inc/requests.php
Date Wed, 23 Sep 2015 17:29:28 GMT
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);



Mime
View raw message