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 2012/05/16 22:06:57 UTC

svn commit: r1339336 - /incubator/vcl/trunk/web/js/schedules.js

Author: jfthomps
Date: Wed May 16 20:06:57 2012
New Revision: 1339336

URL: http://svn.apache.org/viewvc?rev=1339336&view=rev
Log:
VCL-576
Finalizing for 2.3 release

schedules.js: modified addTime - initialize scheduleStore.nextid if not already set

Modified:
    incubator/vcl/trunk/web/js/schedules.js

Modified: incubator/vcl/trunk/web/js/schedules.js
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/js/schedules.js?rev=1339336&r1=1339335&r2=1339336&view=diff
==============================================================================
--- incubator/vcl/trunk/web/js/schedules.js (original)
+++ incubator/vcl/trunk/web/js/schedules.js Wed May 16 20:06:57 2012
@@ -150,7 +150,9 @@ function addTime() {
 		}
 	}
 
-	id = ++scheduleStore.nextid;
+	if(! scheduleStore.nextid)
+		scheduleStore.nextid = 0;
+	var id = ++scheduleStore.nextid;
 	var btn = new dijit.form.Button({
 		label: "Remove",
 		onClick: createRemoveFunc(removeTime, id)