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 2014/11/07 20:56:58 UTC

svn commit: r1637440 - /vcl/trunk/web/js/requests.js

Author: jfthomps
Date: Fri Nov  7 19:56:57 2014
New Revision: 1637440

URL: http://svn.apache.org/r1637440
Log:
no JIRA

requests.js: modified resRefresh: if dojo.byId('detailreqid') == 0, set data.incdetails = 0 so php code does not try to send details of a reservation that does not exist

Modified:
    vcl/trunk/web/js/requests.js

Modified: vcl/trunk/web/js/requests.js
URL: http://svn.apache.org/viewvc/vcl/trunk/web/js/requests.js?rev=1637440&r1=1637439&r2=1637440&view=diff
==============================================================================
--- vcl/trunk/web/js/requests.js (original)
+++ vcl/trunk/web/js/requests.js Fri Nov  7 19:56:57 2014
@@ -1276,8 +1276,10 @@ function resRefresh() {
 		var incdetails = 1;
 	var data = {continuation: contid,
 	            incdetails: incdetails};
-	if(dojo.byId('detailreqid'))
+	if(dojo.byId('detailreqid') && dojo.byId('detailreqid').value != 0)
 		data.reqid = dojo.byId('detailreqid').value;
+	else
+		data.incdetails = 0;
 	RPCwrapper(data, generalReqCB, 0, 30000);
 }