Author: jfthomps
Date: Tue Jan 17 17:04:46 2012
New Revision: 1232482
URL: http://svn.apache.org/viewvc?rev=1232482&view=rev
Log:
VCL-549
AJAX error when creating a new schedule
modified getDojoHTML - added conditional in case statement for 'editSchedule'
and 'submitAddSchedule' to not call populateTimeStore when mode is
'submitAddSchedule'
Modified:
incubator/vcl/trunk/web/.ht-inc/utils.php
Modified: incubator/vcl/trunk/web/.ht-inc/utils.php
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/utils.php?rev=1232482&r1=1232481&r2=1232482&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/utils.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/utils.php Tue Jan 17 17:04:46 2012
@@ -10514,10 +10514,11 @@ function getDojoHTML($refresh) {
foreach($dojoRequires as $req) {
$rt .= " dojo.require(\"$req\");\n";
}
- $id = getContinuationVar("scheduleid");
- $cont = addContinuationsEntry('AJgetScheduleTimesData',
array('id' => $id), SECINDAY, 1, 0);
- $rt .= " populateTimeStore('$cont');\n";
- #$rt .= " setTimeout(function()
{populateTimeStore('$cont');}, 1000);\n";
+ if($mode != 'submitAddSchedule') {
+ $id = getContinuationVar("scheduleid");
+ $cont =
addContinuationsEntry('AJgetScheduleTimesData', array('id' => $id), SECINDAY,
1, 0);
+ $rt .= " populateTimeStore('$cont');\n";
+ }
$rt .= " });\n";
$rt .= "</script>\n";
return $rt;